-
-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (28 loc) · 835 Bytes
/
test.yaml
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
'on':
push: {}
name: Test
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: '${{ matrix.os }}'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Cache .vscode-test/
id: cache-vscode-test
uses: actions/cache@v4
with:
path: .vscode-test
key: ${{ runner.os }}-vscode-test
- run: npm ci
- run: xvfb-run -a npm test
if: runner.os == 'Linux'
- run: npm test
if: runner.os != 'Linux'