Skip to content

Commit ccbdf87

Browse files
committed
Add codegen freshness check
1 parent 6170ddc commit ccbdf87

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,3 +126,20 @@ jobs:
126126
cache: "npm"
127127
- run: npm ci --ignore-scripts
128128
- run: npx prettier --check .
129+
130+
codegen-freshness:
131+
runs-on: ubuntu-latest
132+
133+
steps:
134+
- uses: actions/checkout@v4
135+
- uses: actions/setup-node@v4
136+
with:
137+
node-version: "22"
138+
cache: "npm"
139+
140+
- run: cd codegen && npm ci --ignore-scripts
141+
- run: npm run codegen
142+
143+
- run: >-
144+
git diff --exit-code --color=always || ( echo "Generated code is
145+
out-of-date. See the diff above." && exit 1 )

0 commit comments

Comments
 (0)