-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (30 loc) · 1015 Bytes
/
error-codes-drift.yml
File metadata and controls
37 lines (30 loc) · 1015 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
name: Error Codes Drift
on:
pull_request:
push:
branches: [main]
jobs:
check-drift:
runs-on: ubuntu-latest
env:
NODE_OPTIONS: --max-old-space-size=4096
ROLLUP_DISABLE_NATIVE: '1'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'
- name: Install deps (clean)
run: npm ci --no-audit --no-fund
- name: Ensure Rollup native binary is present (linux-x64)
run: npm i --no-save @rollup/rollup-linux-x64-gnu || true
- name: Generate error-codes doc
run: npm run gen:error-codes
- name: Check for uncommitted changes (error codes doc only)
run: |
# Only check the generated error codes documentation, ignore build outputs
git diff --exit-code -- docs/error-codes.md || {
echo "Error codes are out of sync. Run 'npm run gen:error-codes' and commit docs/error-codes.md.";
exit 1;
}