Skip to content

Add current branch to workflow triggers for testing #1

Add current branch to workflow triggers for testing

Add current branch to workflow triggers for testing #1

name: Integration Tests
on:
workflow_dispatch: # Manual trigger
push:
branches:
- main
- 'feature/**'
- 'claude/update-lambda-examples-01PvMYTvCvRXWSY9GuijdZu2'
pull_request:
branches:
- main
permissions:
id-token: write # Required for OIDC
contents: read
env:
AWS_REGION: us-east-1
jobs:
integration-test:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Java 8
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: '8'
cache: 'maven'
- name: Set up SAM CLI
uses: aws-actions/setup-sam@v2
with:
use-installer: true
version: '1.53.0' # Version from ~2022, compatible with 2020 templates
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::397589511426:role/account-wide-resources-GithubActionsRole-1CAIKQPYM5WD3
aws-region: ${{ env.AWS_REGION }}
- name: Make scripts executable
run: |
chmod +x test-harness/**/*.sh
- name: Deploy all stacks
id: deploy
run: |
./test-harness/deploy/deploy-all.sh
- name: Run smoke tests
id: test
run: |
./test-harness/test/test-all.sh
- name: Teardown all stacks
if: always()
run: |
./test-harness/teardown/teardown-all.sh