Skip to content

TestAuth

TestAuth #1095

Workflow file for this run

name: TestAuth
on:
workflow_dispatch:
schedule:
# Run this once a day to check if everything is still working as expected.
- cron: "0 6,12 * * *"
permissions:
id-token: write
contents: read
jobs:
test-SamDeploymentRole:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: configure aws credentials
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: ${{ secrets.AWS_SAM_DEPLOYMENT_ROLE }}
role-session-name: TestAuthSession
aws-region: ${{ secrets.AWS_REGION }}
- name: Send metric success
run: |
aws cloudwatch put-metric-data --namespace TestingAuth --metric-name TestSamDeploymentAuthFromGitHubAction --value 1 --dimensions OS=Ubuntu
test-LoadTestRunnerRole:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: configure aws credentials
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: ${{ secrets.AWS_LOAD_TEST_RUNNER_ROLE }}
role-session-name: TestAuthSession
aws-region: ${{ secrets.AWS_REGION }}
- name: Send metric success
run: |
aws cloudwatch put-metric-data --namespace TestingAuth --metric-name TestLoadTestRunnerAuthFromGitHubAction --value 1 --dimensions OS=Ubuntu