-
Notifications
You must be signed in to change notification settings - Fork 497
39 lines (38 loc) · 933 Bytes
/
js-test.yml
File metadata and controls
39 lines (38 loc) · 933 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: JS - tests
on:
workflow_dispatch:
push:
branches:
- 'main'
paths:
- 'js/**'
- 'tests_data/**'
- '.github/workflows/**'
pull_request:
paths:
- 'js/**'
- 'tests_data/**'
- '.github/workflows/**'
permissions:
contents: read
jobs:
unit-testing:
strategy:
matrix:
node-version: [ "18", "20" ]
os: [ "ubuntu-latest", "macos-latest" ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # pin@v4
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # pin@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
working-directory: js
run: yarn
- name: Build
working-directory: js
run: yarn run build
- name: Run tests
working-directory: js
run: yarn test