Skip to content

Commit

Permalink
add integrationn tests action
Browse files Browse the repository at this point in the history
  • Loading branch information
lucix-aws committed Oct 8, 2024
1 parent 0cbb5aa commit 1692c6b
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
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

# 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

0 comments on commit 1692c6b

Please sign in to comment.