mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-25 02:00:19 -06:00
45 lines
874 B
YAML
45 lines
874 B
YAML
name: Run Javascript tests
|
|
|
|
on:
|
|
push:
|
|
branches: [ "master" ]
|
|
pull_request:
|
|
branches: [ "master" ]
|
|
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
run-javascript-tests:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [macos-latest, ubuntu-latest, windows-latest]
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: '18.x'
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Upgrade yarn
|
|
run: |
|
|
yarn set version berry
|
|
yarn set version 3
|
|
|
|
- name: Install Node modules
|
|
run: |
|
|
cd web
|
|
yarn install
|
|
|
|
- name: Run the tests
|
|
run: |
|
|
cd web
|
|
yarn run test:js-once
|