Skip to content

Commit aa52398

Browse files
committed
ci(e2e): workflow to run full E2E tests
1 parent df8f88c commit aa52398

File tree

2 files changed

+66
-1
lines changed

2 files changed

+66
-1
lines changed

.github/workflows/go-e2e-full.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: Go E2E full
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
integration:
8+
name: Full Integration Tests
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
id-token: write
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
17+
- name: Setup Go
18+
uses: actions/setup-go@v5
19+
with:
20+
cache: false
21+
go-version: 1.21.x
22+
23+
- name: Load cached dependencies
24+
uses: actions/cache@v3
25+
with:
26+
path: |
27+
~/.cache/go-build
28+
~/go/pkg/mod
29+
key: ${{ runner.os }}-go-e2e-full-${{ hashFiles('**/go.sum') }}
30+
restore-keys: |
31+
${{ runner.os }}-go-e2e-full-
32+
33+
- name: Install dependencies
34+
run: make deps
35+
36+
- name: Unit tests
37+
run: make unit
38+
39+
- name: Setup Python
40+
uses: actions/setup-python@v5
41+
with:
42+
python-version: '3.11'
43+
44+
- name: Install E2E dependencies
45+
run: make e2e-deps
46+
47+
- name: Configure AWS Credentials
48+
uses: aws-actions/configure-aws-credentials@v4
49+
with:
50+
role-to-assume: ${{ secrets.OIDC_AWS_ROLE_TO_ASSUME }}
51+
aws-region: us-east-1
52+
mask-aws-account-id: true
53+
output-credentials: true
54+
role-duration-seconds: 900
55+
role-session-name: GithubOidcIntegAssumeRole
56+
role-external-id: ${{ secrets.OIDC_AWS_ROLE_EXTERNAL_ID }}
57+
58+
- name: E2E full tests
59+
run: make e2e-test-full
60+
env:
61+
KEY_1_ARN: ${{ secrets.KEY_1_ARN }}
62+
KEY_2_ARN: ${{ secrets.KEY_2_ARN }}
63+
KEY_3_ARN: ${{ secrets.KEY_3_ARN }}
64+
MRK_KEY_1_ARN: ${{ secrets.MRK_KEY_1_ARN }}
65+
MRK_KEY_2_ARN: ${{ secrets.MRK_KEY_2_ARN }}

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ e2e-test-short:
107107

108108
e2e-test-full:
109109
@echo "Running full e2e tests, it will take a while"
110-
@gotestsum -f testname -- -timeout=15m -tags "integration" ${RUN_INTEG} ./test/e2e/...
110+
@gotestsum -f ${GOTESTSUM_FMT} -- -timeout=15m -tags "integration" ${RUN_INTEG} ./test/e2e/...
111111

112112
e2e-test-slow:
113113
@echo "Running very slow e2e tests"

0 commit comments

Comments
 (0)