-
Notifications
You must be signed in to change notification settings - Fork 37
52 lines (40 loc) · 1.37 KB
/
TestAuth.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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