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:
|
2023-10-05 01:27:24 -05:00
|
|
|
run-javascript-tests:
|
2023-04-05 07:39:44 -05:00
|
|
|
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:
|
2024-03-12 05:34:15 -05:00
|
|
|
- uses: actions/setup-node@v4
|
2023-10-26 04:47:41 -05:00
|
|
|
with:
|
2024-03-12 05:34:15 -05:00
|
|
|
node-version: '20.x'
|
2023-10-05 01:27:24 -05:00
|
|
|
|
2024-03-12 04:56:31 -05:00
|
|
|
- uses: actions/checkout@v4
|
2023-11-23 01:16:05 -06:00
|
|
|
|
2023-04-25 00:02:33 -05:00
|
|
|
- name: Upgrade yarn
|
|
|
|
run: |
|
2023-10-26 04:47:41 -05:00
|
|
|
yarn set version berry
|
2023-10-26 02:44:01 -05:00
|
|
|
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
|
2023-10-23 07:13:17 -05:00
|
|
|
yarn run test:js-once
|