-
Notifications
You must be signed in to change notification settings - Fork 2
49 lines (39 loc) · 1.15 KB
/
e2e-terratest.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
name: e2e-terratest
on:
push:
branches:
- main
workflow_dispatch:
concurrency: e2e-terratest
jobs:
test:
name: Run E2E Terratest
runs-on: ubuntu-latest
# These permissions are needed to interact with GitHub's OIDC Token endpoint.
permissions:
id-token: write
contents: read
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Configure AWS credentials from Test account
uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: ${{ secrets.ROLE_TO_ASSUME }}
aws-region: eu-west-2
role-duration-seconds: 3600
role-session-name: GithubActions-Session
- name: Terraform
uses: hashicorp/setup-terraform@v2
with:
terraform_version: 1.1.8
terraform_wrapper: false
- name: Setup Dependencies
working-directory: test/src
run: go get -v -t -d && go mod tidy -compat=1.17
- name: Run Go E2E Tests
working-directory: test/src
run: go test -v -timeout 60m -tags=e2e