-
Notifications
You must be signed in to change notification settings - Fork 55
feat: release readiness check #1560
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
8a5c935
ecf37a1
e77b9c3
82a909d
39f1c00
58c2a50
adc5117
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| 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 ] | ||
| workflow_dispatch: | ||
|
|
||
| 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 | ||
|
|
||
| - name: Build SDK client | ||
| run: | | ||
| ./gradlew -Paws.services=s3 -Paws.kotlin.native=false bootstrap || echo $ERROR_MESSAGE | ||
| ./gradlew build || echo $ERROR_MESSAGE | ||
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question: What is the
workflow_dispatchneeded for?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It allows the workflow to be triggered manually. I don't know if we'll necessarily need to but seems fine to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, that's where I was leading with the question. I don't think we'll ever need to trigger this workflow manually, so we could simplify this a little by removing it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, we can remove it and if we ever need to run it manually we can add the
workflow_dispatchback