-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (36 loc) · 1006 Bytes
/
Copy pathtest.yml
File metadata and controls
39 lines (36 loc) · 1006 Bytes
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
name: Test
on:
push:
branches: [main]
pull_request:
jobs:
matrix:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 24
- run: corepack enable
- run: pnpm install --frozen-lockfile
- run: pnpm test
- run: pnpm build
- run: node dist/index.js --version
# Aggregator so the branch-protection rule (which requires a check named
# `test`) has something stable to match against — without this, adding/
# removing matrix OSes would silently change required check names.
test:
needs: matrix
if: always()
runs-on: ubuntu-latest
steps:
- name: Verify matrix succeeded
run: |
if [[ "${{ needs.matrix.result }}" != "success" ]]; then
echo "matrix job result: ${{ needs.matrix.result }}"
exit 1
fi