-
Notifications
You must be signed in to change notification settings - Fork 9
117 lines (99 loc) · 2.97 KB
/
e2e.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
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
110
111
112
113
114
115
116
117
name: "Run End-to-end tests"
on:
push:
branches: [ master ]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
env:
GOLANG_VERSION: '1.22'
jobs:
e2e-tests-130:
name: End-to-end tests 1.30
runs-on: ubuntu-20.04
strategy:
fail-fast: false
max-parallel: 1
steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GOLANG_VERSION }}
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Get cache
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: "install kuttl"
run: ./hack/install-kuttl.sh
- name: "run tests"
env:
KUBE_VERSION: "1.30"
run: make start-kind KUBE_VERSION=$KUBE_VERSION && make e2e
- name: Save cache
id: cache-save
uses: actions/cache/save@v4
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
# e2e-tests-129:
# name: End-to-end tests 1.29
# needs: [e2e-tests-130]
# runs-on: ubuntu-20.04
# strategy:
# fail-fast: false
# max-parallel: 1
# steps:
# - name: Set up Go
# uses: actions/setup-go@v4
# with:
# go-version: ${{ env.GOLANG_VERSION }}
# - name: Check out code into the Go module directory
# uses: actions/checkout@v4
# - name: Get cache
# uses: actions/cache@v3
# with:
# path: |
# ~/.cache/go-build
# ~/go/pkg/mod
# key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
# restore-keys: |
# ${{ runner.os }}-go-
# - name: "install kuttl"
# run: ./hack/install-kuttl.sh
# - name: "run tests"
# env:
# KUBE_VERSION: "1.29"
# run: make start-kind KUBE_VERSION=$KUBE_VERSION && make e2e
# - name: Save cache
# id: cache-save
# uses: actions/cache/save@v4
# with:
# path: |
# ~/.cache/go-build
# ~/go/pkg/mod
# key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
# e2e-tests-check:
# runs-on: ubuntu-20.04
# if: always()
# needs: [e2e-tests-130, e2e-tests-129]
# steps:
# - name: Print result
# run: echo ${{ needs.e2e-tests-130.result }} && echo ${{ needs.e2e-tests-129.result }}
# - name: Interpret result
# run: |
# if [[ success == ${{ needs.e2e-tests-130.result }} && success == ${{ needs.e2e-tests-129.result }} ]]
# then
# echo "All matrix jobs passed!"
# else
# echo "One or more matrix jobs failed."
# false
# fi