Autoscaling Tests #30
This file contains hidden or 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: Autoscaling Tests | |
on: | |
workflow_dispatch: | |
permissions: | |
id-token: write # This is required for requesting the JWT | |
contents: read # This is required for actions/checkout | |
jobs: | |
run-autoscaling-tests: | |
name: Run Autoscaling Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Clone repository' | |
uses: actions/checkout@v4 | |
- name: 'Set up JDK 8' | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'corretto' | |
java-version: 8 | |
- name: Install poetry | |
uses: abatilo/actions-poetry@v3 | |
with: | |
poetry-version: '1.8.2' | |
- name: Install dependencies | |
run: poetry install | |
- name: 'Configure AWS Credentials' | |
id: creds | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/${{ secrets.AWS_DEPLOY_ROLE }} | |
role-session-name: python_autoscaling_tests | |
role-duration-seconds: 21600 | |
aws-region: ${{ secrets.AWS_DEFAULT_REGION }} | |
output-credentials: true | |
- name: 'Run Autoscaling Tests' | |
run: | | |
./gradlew --no-parallel --no-daemon test-autoscaling --info | |
env: | |
RDS_CLUSTER_DOMAIN: ${{ secrets.DB_CONN_SUFFIX }} | |
AURORA_DB_REGION: ${{ secrets.AWS_DEFAULT_REGION }} | |
AWS_ACCESS_KEY_ID: ${{ steps.creds.outputs.aws-access-key-id }} | |
AWS_SECRET_ACCESS_KEY: ${{ steps.creds.outputs.aws-secret-access-key }} | |
AWS_SESSION_TOKEN: ${{ steps.creds.outputs.aws-session-token }} | |
- name: 'Archive results' | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: pytest-autoscaling-report | |
path: ./tests/integration/container/reports | |
retention-days: 5 |