Skip to content

Commit 8a5c935

Browse files
committed
feat: release readiness check
1 parent 484b946 commit 8a5c935

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Release readiness (snapshot dependency)
2+
3+
# Makes sure that we aren't relying on SNAPSHOT/dev versions of smithy-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+
workflow_dispatch:
10+
11+
jobs:
12+
release-readiness:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout sources
16+
uses: actions/checkout@v4
17+
18+
- name: Configure Gradle
19+
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main
20+
21+
- name: Configure error message
22+
run: echo "ERROR_MESSAGE=WARNING smithy-kotlin release and version bump might be required before merging!" >> $GITHUB_ENV
23+
24+
- name: Build SDK
25+
run: ./gradlew test jvmTest || echo $ERROR_MESSAGE
26+
27+
- name: Build SDK client
28+
run: |
29+
./gradlew -Paws.services=s3 -Paws.kotlin.native=false bootstrap || echo $ERROR_MESSAGE
30+
./gradlew build || echo $ERROR_MESSAGE

0 commit comments

Comments
 (0)