forked from operator-framework/operator-controller
-
Notifications
You must be signed in to change notification settings - Fork 0
109 lines (90 loc) · 2.76 KB
/
e2e.yaml
File metadata and controls
109 lines (90 loc) · 2.76 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
name: e2e
on:
workflow_dispatch:
pull_request:
merge_group:
push:
branches:
- main
jobs:
extension-developer-e2e:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Run the extension developer e2e test
run: make extension-developer-e2e
e2e-kind:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Run e2e tests
run: ARTIFACT_PATH=/tmp/artifacts make test-e2e
- name: alerts-check
# Grab all current alerts, filtering out pending, and print the GH actions warning string
# containing the alert name and description.
#
# NOTE: Leaving this as annotating-only instead of failing the run until we have some more
# finely-tuned alerts.
run: |
if [[ -s /tmp/artifacts/alerts.out ]]; then \
jq -r 'if .state=="firing" then
"::error title=Prometheus Alert Firing::\(.labels.alertname): \(.annotations.description)"
elif .state=="pending" then
"::warning title=Prometheus Alert Pending::\(.labels.alertname): \(.annotations.description)"
end' /tmp/artifacts/alerts.out
fi
- uses: actions/upload-artifact@v4
if: failure()
with:
name: e2e-artifacts
path: /tmp/artifacts/
- uses: codecov/codecov-action@v5.4.3
with:
disable_search: true
files: coverage/e2e.out
flags: e2e
token: ${{ secrets.CODECOV_TOKEN }}
experimental-e2e:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Run e2e tests
run: ARTIFACT_PATH=/tmp/artifacts make test-experimental-e2e
- uses: actions/upload-artifact@v4
if: failure()
with:
name: experimental-e2e-artifacts
path: /tmp/artifacts/
- uses: codecov/codecov-action@v5.4.3
with:
disable_search: true
files: coverage/experimental-e2e.out
flags: experimental-e2e
token: ${{ secrets.CODECOV_TOKEN }}
upgrade-e2e:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Run the upgrade e2e test
run: ARTIFACT_PATH=/tmp/artifacts make test-upgrade-e2e
- uses: actions/upload-artifact@v4
if: failure()
with:
name: upgrade-e2e-artifacts
path: /tmp/artifacts/