-
Notifications
You must be signed in to change notification settings - Fork 4
62 lines (53 loc) · 1.51 KB
/
e2e.yaml
File metadata and controls
62 lines (53 loc) · 1.51 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: E2E tests
concurrency:
group: e2e-tests
on:
workflow_call:
inputs:
image-repository:
required: true
type: string
image-tag:
required: true
type: string
secrets:
CASTAI_API_TOKEN:
required: true
GCP_CREDENTIALS:
required: true
jobs:
e2e-tests:
name: Run e2e tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go 1.25
uses: actions/setup-go@v5
with:
go-version: '1.25.5'
- uses: azure/setup-kubectl@v4
- uses: azure/setup-helm@v4.2.0
with:
version: 'v3.19.4'
- name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v2'
with:
version: '>= 363.0.0'
install_components: 'gke-gcloud-auth-plugin'
- name: Cache Go modules
uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-build-${{ hashFiles('**/go.sum') }}
restore-keys: ${{ runner.os }}-build-
- name: Run e2e tests
env:
CLUSTER_CONTROLLER_IMAGE_REPOSITORY: ${{ inputs.image-repository }}
CLUSTER_CONTROLLER_IMAGE_TAG: ${{ inputs.image-tag }}
CLUSTER_NAME: e2e-cluster-controller
CLUSTER_REGION: us-central1
CASTAI_API_TOKEN: ${{ secrets.CASTAI_API_TOKEN }}
GCP_CREDENTIALS: ${{ secrets.GCP_CREDENTIALS }}
run: |
go test -timeout 30m -parallel=10 ./e2e