Run Metrics Latest #80
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: Run Metrics Latest | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "8 0 * * *" # Runs daily at 8am UTC (1am PST) | |
permissions: | |
id-token: write # This is required for requesting the JWT | |
contents: read # This is required for actions/checkout | |
jobs: | |
run-metrics-with-latest: | |
name: Run Metrics with latest engine version | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
dbEngine: [ "mysql-aurora", "mysql-multi-az", "pg-aurora", "pg-multi-az" ] | |
steps: | |
- name: 'Clone repository' | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 50 | |
- name: 'Set up JDK 8' | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'corretto' | |
java-version: 8 | |
- name: 'Configure AWS credentials' | |
uses: aws-actions/configure-aws-credentials@v4 | |
id: creds | |
with: | |
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/${{ secrets.AWS_DEPLOY_ROLE }} | |
role-session-name: run_integration_test_latest | |
role-duration-seconds: 21600 | |
aws-region: ${{ secrets.AWS_DEFAULT_REGION }} | |
output-credentials: true | |
- name: Run integration tests | |
run: | | |
./gradlew --no-parallel --no-daemon test-metrics-${{ matrix.dbEngine }} | |
env: | |
AURORA_CLUSTER_DOMAIN: ${{ secrets.DB_CONN_SUFFIX }} | |
RDS_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 }} | |
MYSQL_VERSION: "latest" | |
PG_VERSION: "latest" | |
- name: Mask data | |
run: | | |
./gradlew --no-parallel --no-daemon maskJunitHtmlReport | |
- name: Archive junit results for ${{ matrix.dbEngine }} | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: junit-report-latest-${{ matrix.dbEngine }} | |
path: ./wrapper/build/test-results | |
retention-days: 5 | |
- name: Archive html summary report for ${{ matrix.dbEngine }} | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: html-summary-report-latest-${{ matrix.dbEngine }} | |
path: ./wrapper/build/report | |
retention-days: 5 | |
- name: Archive metrics for ${{ matrix.dbEngine }} | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: metrics-latest-${{ matrix.dbEngine }} | |
path: ./wrapper/build/reports/tests | |
retention-days: 5 |