-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (43 loc) · 1.6 KB
/
ci.yml
File metadata and controls
53 lines (43 loc) · 1.6 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
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
# CodeQL actions/missing-workflow-permissions (alerts #27 #28):
# declare minimal permissions at the workflow level. Both jobs only
# read source and run tests — they never push, comment, or release.
permissions:
contents: read
jobs:
test:
name: Build & Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 — Phase 134.5 SHA pin
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 — Phase 134.5 SHA pin
with:
node-version: 22
cache: npm
# Cache against the root lockfile now that scripts/cdp-bridge is
# an npm workspace member (PR #158 — changesets adoption).
cache-dependency-path: package-lock.json
# Install from repo root so the npm workspaces config resolves
# correctly. `npm ci` inside scripts/cdp-bridge would fight the
# root lockfile.
- run: npm ci
- name: TypeScript build
run: npm run build
working-directory: scripts/cdp-bridge
- name: Unit tests
run: node --test 'test/unit/*.test.js'
working-directory: scripts/cdp-bridge
- name: Integration tests
run: node --test 'test/integration/*.test.js'
working-directory: scripts/cdp-bridge
version-sync:
name: Version sync check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 — Phase 134.5 SHA pin
- run: bash scripts/sync-versions.sh