pgadmin4/.github/workflows/run-javascript-tests.yml

45 lines
874 B
YAML
Raw Normal View History

2023-03-29 06:51:12 -05:00
name: Run Javascript tests
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
workflow_dispatch:
2023-03-29 07:08:46 -05:00
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true
2023-03-29 06:51:12 -05:00
jobs:
run-javascript-tests:
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
2023-03-29 06:51:12 -05:00
steps:
- uses: actions/setup-node@v4
with:
node-version: '20.x'
- uses: actions/checkout@v4
- name: Upgrade yarn
run: |
yarn set version berry
yarn set version 3
2023-03-29 06:51:12 -05:00
- name: Install Node modules
run: |
cd web
yarn install
- name: Run the tests
run: |
cd web
yarn run test:js-once