-
Notifications
You must be signed in to change notification settings - Fork 4
52 lines (45 loc) · 1.2 KB
/
test-module.yml
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
52
name: test-component
on:
push:
branches:
- main
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
branches:
- main
paths-ignore:
- "**.md"
permissions:
id-token: write
contents: read
defaults:
run:
# We need -e -o pipefail for consistency with GitHub Actions' default behavior
shell: bash -e -o pipefail {0}
jobs:
# Run the tests
run-test:
name: Test Component
runs-on: ubuntu-latest
# Only run when the pull request is not in draft status
if: github.event.pull_request.draft == false
steps:
- name: Checkout the code
uses: actions/checkout@v4
- name: Initialize Pipeline
uses: ./.github/actions/init-pipeline
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.AWS_COMMERCIAL_ROLE_TO_ASSUME }}
role-session-name: ${{ github.event.client_payload.pull_request.head.sha || github.sha }}
aws-region: us-east-1
# 21600 seconds == 6 hours
role-duration-seconds: 21600
- name: Run live infra tests
run: |
make test