-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (41 loc) · 1.33 KB
/
test.yml
File metadata and controls
51 lines (41 loc) · 1.33 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
name: Test Mini TypeScript Hero
on:
push:
branches: [main, master, mini-typescript-hero-v4]
pull_request:
branches: [main, master]
jobs:
test:
name: Test on ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: true # Checkout submodule at pinned commit from repo
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18.x'
- name: Install main dependencies
run: npm install
- name: Run main extension tests (Linux with xvfb)
if: runner.os == 'Linux'
run: xvfb-run -a npm test
- name: Run main extension tests (macOS/Windows)
if: runner.os != 'Linux'
run: npm test
- name: Install comparison test harness dependencies
run: npm install
working-directory: ./comparison-test-harness
- name: Run comparison tests (Linux with xvfb)
if: runner.os == 'Linux'
run: xvfb-run -a npm test
working-directory: ./comparison-test-harness
- name: Run comparison tests (macOS/Windows)
if: runner.os != 'Linux'
run: npm test
working-directory: ./comparison-test-harness