Codegen Compatibility #12
This file contains hidden or 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: Codegen Compatibility | |
| on: | |
| # Run daily at 4 AM UTC | |
| schedule: | |
| - cron: '0 4 * * *' | |
| # Allow manual trigger | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| codegen-compatibility: | |
| runs-on: ubuntu-latest | |
| name: AWS Model Codegen Compatibility | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Checkout api-models-aws | |
| uses: actions/checkout@v6 | |
| with: | |
| repository: aws/api-models-aws | |
| path: api-models-aws | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: 21 | |
| distribution: 'corretto' | |
| - name: Cache compiled buildscripts | |
| uses: actions/cache@v5 | |
| with: | |
| key: ${{ runner.os }}-gradle-${{ hashFiles('buildSrc/**/*.kts') }} | |
| path: | | |
| ./buildSrc/build | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v6 | |
| with: | |
| cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }} | |
| gradle-home-cache-includes: | | |
| caches | |
| - name: Run codegen compatibility tests | |
| env: | |
| API_MODELS_AWS_DIR: ${{ github.workspace }}/api-models-aws | |
| run: | | |
| ./gradlew :codegen:codegen-plugin:integ --tests "*.AwsModelCodegenCompilationTest" --stacktrace | |
| - uses: actions/upload-artifact@v7 | |
| if: failure() | |
| with: | |
| name: codegen-compatibility-report | |
| path: '**/build/reports/tests' |