-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (49 loc) · 1.47 KB
/
Copy pathci.yml
File metadata and controls
52 lines (49 loc) · 1.47 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: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
test:
name: Node ${{ matrix.node }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
node: [20, 22]
os: [ubuntu-latest, macos-latest]
steps:
# Until @certifieddata/verify is published to npm, this repo depends on
# it via `file:../verify`, so CI checks out both repositories as siblings.
# After the first publish, drop the verify checkout and switch this repo's
# dependency to a published version range.
- uses: actions/checkout@v4
with:
path: reference-impl
- uses: actions/checkout@v4
with:
repository: certifieddata/verify
# Match the branch name on the verify repo for PR builds; fall back
# to main on push-to-main builds (post-merge state).
ref: ${{ github.head_ref || 'main' }}
path: verify
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Build verify
working-directory: verify
run: |
npm install
npm run build
- name: Install reference-impl
working-directory: reference-impl
run: npm install
- name: Typecheck
working-directory: reference-impl
run: npm run typecheck
- name: Test
working-directory: reference-impl
run: npm test