feat: kat in CI
#5
Workflow file for this run
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: Kat Verification | |
| on: | |
| pull_request: | |
| types: [ opened, synchronize, reopened, labeled, unlabeled ] | |
| branches: [ main ] | |
| # Allow one instance of this workflow per pull request, and cancel older runs when new changes are pushed | |
| concurrency: | |
| group: kat-pr-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| id-token: write | |
| contents: read | |
| env: | |
| RUN: ${{ github.run_id }}-${{ github.run_number }} | |
| GRADLE_OPTS: "-Dorg.gradle.daemon=false -Dkotlin.incremental=false" | |
| jobs: | |
| verify-transform: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout sources | |
| uses: actions/checkout@v4 | |
| with: | |
| path: 'aws-sdk-kotlin' | |
| - name: Setup Build | |
| uses: ./aws-sdk-kotlin/.github/actions/setup-build | |
| - name: Configure AWS Credentials | |
| uses: aws-actions/configure-aws-credentials@v4 | |
| with: | |
| role-to-assume: ${{ secrets.CI_AWS_ROLE_ARN }} | |
| aws-region: us-west-2 | |
| - name: Setup kat | |
| uses: ./aws-sdk-kotlin/.github/actions/setup-kat | |
| - name: Verify | |
| working-directory: ./aws-sdk-kotlin | |
| shell: bash | |
| run: | | |
| pwd | |
| ls -lsa | |
| ./gradlew build | |
| ./gradlew publishAllPublicationsToTestLocalRepository | |
| kat brazil transform -i ./build/m2 -o ./transformed -t .brazil.json -v live -m ./codegen/sdk/packages.json |