diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 8826d59..7b1f6a2 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -26,7 +26,22 @@ jobs: - uses: actions/setup-node@v4 with: node-version: 18 + - run: git tag pre-updates - run: npm install + - name: Create generated files + shell: bash + run: | + npm run gen + + failed=false + echo different files: + git diff pre-updates --name-only --exit-code || failed=true + echo end different files + + if ! [ "$failed" = "false" ]; then + echo '::error::Generated files are out of date!' + echo '::error::run `npm run gen` and commit the changes' + exit "$exitcode" + fi - run: npm test # FIXME: also parse tests/*.just -