Integration Tests #133
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
name: Integration Tests | |
on: | |
schedule: | |
- cron: '30 19 * * MON-FRI' | |
workflow_dispatch: | |
jobs: | |
build: | |
if: ${{ vars.INTEGRATION_TESTS_BUCKET != '' }} | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- uses: actions/setup-java@9704b39bf258b59bc04b50fa2dd55e9ed76b47a8 # v4.1.0 | |
with: | |
distribution: 'temurin' | |
java-version: '21' | |
cache: 'maven' | |
- uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 #v4.0.2 | |
name: Configure AWS credentials from Test account | |
with: | |
role-to-assume: ${{ vars.AWS_ROLE }} | |
aws-region: ${{ vars.AWS_REGION }} | |
- name: Fetch integration utils library | |
run: | | |
mkdir -p integration-tests/.libs | |
mkdir -p integration-tests/src/main/resources | |
wget -O integration-tests/.libs/software.amazon.awssdk-sso.jar https://repo1.maven.org/maven2/software/amazon/awssdk/sso/2.19.8/sso-2.19.8.jar | |
aws s3 cp "s3://${{ vars.INTEGRATION_TESTS_BUCKET }}/config-latest.yml" integration-tests/src/main/resources/config.yml | |
- name: Run and verify integration tests | |
run: ./mvnw clean compile test-compile failsafe:integration-test failsafe:verify |