Repository navigation
67 lines (57 loc) · 1.61 KB
/
Copy pathrun-javascript-tests.yml
File metadata and controls
67 lines (57 loc) · 1.61 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Run Javascript tests
on:
push:
branches: [ "master" ]
paths:
- 'web/**/*.js'
- 'web/**/*.jsx'
- 'web/package.json'
- 'web/yarn.lock'
- 'web/jest.config.js'
- 'web/webpack.shim.js'
- 'web/regression/javascript/**'
- 'web/.yarnrc.yml'
- 'web/babel.config.json'
- '.github/workflows/run-javascript-tests.yml'
pull_request:
branches: [ "master" ]
paths:
- 'web/**/*.js'
- 'web/**/*.jsx'
- 'web/package.json'
- 'web/yarn.lock'
- 'web/jest.config.js'
- 'web/webpack.shim.js'
- 'web/regression/javascript/**'
- 'web/.yarnrc.yml'
- 'web/babel.config.json'
- '.github/workflows/run-javascript-tests.yml'
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-22.04, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/setup-node@v7
with:
node-version: '20.x'
- uses: actions/checkout@v7
# Corepack reads packageManager from web/package.json and provisions
# exactly that Yarn: a single pinned download, with nothing written
# into the checkout.
- name: Enable Corepack
run: corepack enable
- name: Install Node modules
run: |
cd web
yarn install --immutable
- name: Run the tests
run: |
cd web
yarn run test:js-once