-
Notifications
You must be signed in to change notification settings - Fork 28
63 lines (54 loc) · 1.44 KB
/
ci.yaml
File metadata and controls
63 lines (54 loc) · 1.44 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
53
54
55
56
57
58
59
60
61
62
63
name: CI
permissions:
contents: read
actions: read
env:
NPM_CONFIG_PROGRESS: 'false'
NPM_CONFIG_LOGLEVEL: warn
on:
push:
branches: [main, canary]
pull_request:
branches: [main, canary]
jobs:
test:
strategy:
matrix:
node-version: ['18.20', '20.18', '22.11']
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Install dependencies and build
uses: ./.github/actions/install-and-build
with:
os: ${{ matrix.os }}
node-version: ${{ matrix.node-version }}
- name: Lint and test
uses: ./.github/actions/lint-and-test
with:
os: ${{ matrix.os }}
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Test built wrapper app
uses: ./.github/actions/test-app
with:
os: ${{ matrix.os }}
- name: Test built functions
uses: ./.github/actions/test-functions
with:
os: ${{ matrix.os }}
# Single status check that represents all matrix jobs
ci-status:
name: CI Status
needs: test
if: always()
runs-on: ubuntu-latest
steps:
- name: Check matrix job results
run: |
if [ "${{ needs.test.result }}" != "success" ]; then
echo "Matrix jobs failed or were cancelled"
exit 1
fi
echo "All matrix jobs passed!"