Skip to content

Commit

Permalink
Merge pull request #11 from m-novikov/verify-src
Browse files Browse the repository at this point in the history
Verify that generated code is up to date
  • Loading branch information
m-novikov authored Apr 17, 2022
2 parents 94a6dc5 + efe72b8 commit cf1cccc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,14 @@ jobs:
- run: npm ci
- run: npm run build --if-present
- run: npx prettier --check .
- run: npm run gen
- name: Verify generated code
if: runner.os == 'Linux'
run: |
if ! git diff --quiet --ignore-submodules -- src/
then
echo >&2 "Generated files in src/ differ, please run 'npm run gen' to update generated code"
git diff-index --name-status -r --ignore-submodules HEAD src/ >&2
exit 1
fi
- run: npm test

0 comments on commit cf1cccc

Please sign in to comment.