feat: release readiness check #4
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: Release readiness (snapshot dependency) | |
| # Makes sure that we aren't relying on SNAPSHOT/dev versions of smithy-kotlin before merging | |
| # Otherwise we could forget because the rest of CI is masking it | |
| on: | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| release-readiness: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout sources | |
| uses: actions/checkout@v4 | |
| - name: Configure Gradle | |
| uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main | |
| - name: Configure error message | |
| run: echo "ERROR_MESSAGE=WARNING smithy-kotlin release and version bump might be required before merging" >> $GITHUB_ENV | |
| - name: Build SDK | |
| run: ./gradlew test jvmTest || { echo "$ERROR_MESSAGE"; exit 1; } | |
| - name: Build SDK client | |
| run: | | |
| ./gradlew -Paws.services=s3 -Paws.kotlin.native=false bootstrap || { echo "$ERROR_MESSAGE"; exit 1; } | |
| ./gradlew -Paws.kotlin.native=false build || { echo "$ERROR_MESSAGE"; exit 1; } |