-
-
Notifications
You must be signed in to change notification settings - Fork 302
51 lines (49 loc) · 1.28 KB
/
Copy pathtest.yml
File metadata and controls
51 lines (49 loc) · 1.28 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: Tests
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- mv: mv2
blocklist: blocklist
args: "--mv=mv2"
run-tests: true
- mv: mv2
blocklist: no-blocklist
args: "--mv=mv2 --no-blocklist"
run-tests: false
- mv: mv3
blocklist: blocklist
args: "--mv=mv3"
run-tests: true
- mv: mv3
blocklist: no-blocklist
args: "--mv=mv3 --no-blocklist"
run-tests: false
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "22"
- name: Enable corepack
run: corepack enable
- name: Prepare pnpm
run: corepack prepare pnpm@10.11.0 --activate
- name: Install dependencies
run: pnpm install
- name: Clean workspace
run: pnpm run clean
- name: Build ${{ matrix.mv }} (${{ matrix.blocklist }})
run: pnpm run build:variant -- ${{ matrix.args }}
- name: Test
if: matrix.run-tests == 'true'
run: pnpm test