-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (42 loc) · 1.36 KB
/
test.yml
File metadata and controls
52 lines (42 loc) · 1.36 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
name: Test Mini TypeScript Hero
on:
push:
branches: [main, mini-typescript-hero-v4]
pull_request:
branches: [main]
jobs:
test:
name: Test on ${{ matrix.os }}
timeout-minutes: 10 # Tests take ~2-3min, add buffer for CI overhead
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 tests dependencies
run: npm install
working-directory: ./tests/comparison
- name: Run comparison tests (Linux with xvfb)
if: runner.os == 'Linux'
run: xvfb-run -a npm test
working-directory: ./tests/comparison
- name: Run comparison tests (macOS/Windows)
if: runner.os != 'Linux'
run: npm test
working-directory: ./tests/comparison