-
Notifications
You must be signed in to change notification settings - Fork 35
32 lines (26 loc) · 874 Bytes
/
Copy pathgenerator-check.yml
File metadata and controls
32 lines (26 loc) · 874 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
name: Source Of Truth Check
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
check-architecture:
name: source-of-truth-check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-node@v4
with:
node-version: '20'
- name: Generate runtime adapters
run: node scripts/generate.js
- name: Check adapter drift
run: |
if ! git diff --exit-code --name-only; then
echo "::error::Runtime adapters are out of sync with canonical src. Run 'node scripts/generate.js' and commit the changes."
git diff --stat
exit 1
fi
- name: Run full test suite
run: node --test tests/unit/*.test.js tests/transforms/*.test.js tests/integration/*.test.js