Skip to content

Commit

Permalink
Force changes to the code generators to include the updated auto-gene…
Browse files Browse the repository at this point in the history
…rated files
  • Loading branch information
daniel-rusu committed Mar 28, 2024
1 parent 822df1f commit 82dd6e3
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,20 @@ jobs:
- name: Setup Gradle
uses: gradle/gradle-build-action@v3

- name: Generate code # Ensure that CI build & test is run against the latest generated code
- name: Generate code
run: ./gradlew generateCode --no-daemon

- name: Check for changes in generated code
id: diff
run: |
git diff --exit-code >/dev/null 2>&1
- name: Fail if submission doesn't include the latest generated code
if: ${{ always() && steps.diff.outcome != 'success' }}
run: |
echo "Generated files changed. Run './gradlew generateCode' after changing the code generators and include the updated files with your submission."
exit 1
- name: Build & run tests
run: ./gradlew build --no-daemon

Expand Down

0 comments on commit 82dd6e3

Please sign in to comment.