-
Notifications
You must be signed in to change notification settings - Fork 638
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
run integration tests in GitHub CI (#2828)
- Loading branch information
Showing
6 changed files
with
61 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"id": "7d52e0ac-9c17-4070-8a42-6c1f8a1593ff", | ||
"type": "bugfix", | ||
"collapse": true, | ||
"description": "Fixup some integration tests.", | ||
"modules": [ | ||
"feature/s3/manager", | ||
"service/internal/integrationtest" | ||
] | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Integration Tests | ||
|
||
# these are expensive, limit how often they're running | ||
# | ||
# functionally, all we need to do is vet the code going into main | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
id-token: write | ||
|
||
# again, expensive, only one per PR can run and they self-cancel | ||
concurrency: | ||
group: ci-codebuild-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
integration-tests: | ||
name: Integration Tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- 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: Run tests | ||
id: integration-tests | ||
uses: aws-actions/aws-codebuild-run-build@v1 | ||
with: | ||
project-name: aws-sdk-go-v2-integrationtests | ||
- name: Cancel tests | ||
if: ${{ cancelled() }} | ||
env: | ||
BUILD_ID: ${{ steps.integration-tests.outputs.aws-build-id }} | ||
run: | | ||
if [ ! -z "$BUILD_ID" ]; then | ||
echo "aws codebuild stop-build --id $BUILD_ID" | ||
aws codebuild stop-build --id $BUILD_ID | ||
fi | ||
This file contains 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
This file contains 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
This file contains 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
This file contains 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