mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-26 02:30:21 -06:00
40 lines
757 B
YAML
40 lines
757 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:
|
|
build:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [macos-latest, ubuntu-latest, windows-latest]
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Upgrade yarn
|
|
run: |
|
|
yarn set version berry
|
|
|
|
- name: Install Node modules
|
|
run: |
|
|
cd web
|
|
yarn install
|
|
|
|
- name: Run the tests
|
|
run: |
|
|
cd web
|
|
yarn run test:karma-once
|