-
Notifications
You must be signed in to change notification settings - Fork 7
51 lines (42 loc) · 997 Bytes
/
Copy pathe2e.yaml
File metadata and controls
51 lines (42 loc) · 997 Bytes
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
name: E2E Tests
on:
push:
paths:
- "charts/**"
- "cmd/snmcp-e2e/**"
- "scripts/e2e-test.sh"
- ".github/workflows/e2e.yaml"
pull_request:
paths:
- "charts/**"
- "cmd/snmcp-e2e/**"
- "scripts/e2e-test.sh"
- ".github/workflows/e2e.yaml"
workflow_dispatch:
permissions:
contents: read
jobs:
e2e:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
- name: Set up Helm
uses: azure/setup-helm@v4
- name: Set up Kind
uses: helm/kind-action@v1
with:
cluster_name: kind
- name: Download dependencies
run: go mod download
- name: Run E2E tests
env:
E2E_VERBOSE: "1"
run: ./scripts/e2e-test.sh all
- name: Cleanup
if: always()
run: ./scripts/e2e-test.sh cleanup