-
-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (33 loc) · 861 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
36
37
38
39
40
name: Test
on:
push:
branches: [master]
pull_request:
types: [opened, synchronize, reopened]
jobs:
run-tests:
name: Run tests
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
env:
ANDREAS_TEST: true
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
- name: Install dependencies
run: npm --color install
- name: Compile
run: npm --color run compile
- name: Run tests (Linux)
run: xvfb-run -a npm --color run test:ci
if: runner.os == 'Linux'
- name: Run tests (Other)
run: npm --color run test:ci
if: runner.os != 'Linux'