Improve summary for Immutable Arrays #195
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Code-Generation | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 21 | |
distribution: 'adopt' | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v4 | |
- 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 |