Skip to content

Commit b56b9f2

Browse files
authored
feat: release readiness check (#1264)
1 parent 44d19cd commit b56b9f2

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Release readiness (snapshot dependency)
2+
3+
# Makes sure that we aren't relying on SNAPSHOT/dev versions of aws-crt-kotlin before merging
4+
# Otherwise we could forget because the rest of CI is masking it
5+
6+
on:
7+
pull_request:
8+
branches: [ main ]
9+
10+
jobs:
11+
release-readiness:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout sources
15+
uses: actions/checkout@v4
16+
17+
- name: Configure Gradle
18+
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main
19+
20+
- name: Build smithy-kotlin
21+
run: ./gradlew test jvmTest
22+
23+
- name: Emit error message
24+
if: ${{ failure() }}
25+
run: |
26+
echo "::error ::Build failed. Did you forget to release aws-crt-kotlin and bump the dependency version?"
27+
exit 1

0 commit comments

Comments
 (0)