-
Notifications
You must be signed in to change notification settings - Fork 42
45 lines (41 loc) · 1.1 KB
/
e2e.yaml
File metadata and controls
45 lines (41 loc) · 1.1 KB
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
name: Terraform E2E
on:
repository_dispatch:
types: [ tf-e2e ]
workflow_run:
workflows: [ "Release" ]
types:
- completed
branches:
- 'master'
concurrency:
group: e2e
cancel-in-progress: false
jobs:
test:
runs-on: ubuntu-latest
env:
E2E_CASTAI_URL: ${{ secrets.CASTAI_URL }}
E2E_CASTAI_TOKEN: ${{ secrets.CASTAI_TOKEN }}
E2E_GKE_WORKSPACE: ${{ secrets.GKE_WORKSPACE }}
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.23.6
- name: Cache Go modules
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-build-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-build-
- uses: hashicorp/setup-terraform@v2
with:
cli_config_credentials_token: ${{ secrets.TF_CLOUD_TOKEN }}
cli_config_credentials_hostname: app.terraform.io
terraform_wrapper: false
- name: Test
working-directory: e2e/
run: go test -v -test.timeout 0