-
Notifications
You must be signed in to change notification settings - Fork 13
42 lines (40 loc) · 1.33 KB
/
make-test-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
name: Make run tests e2e
on:
pull_request:
types:
- opened
- labeled
- synchronize
jobs:
test-e2e:
name: test-e2e on k8s ${{ matrix.k8s.attribute }} version
# Pull request has label 'ok-to-test' or the author is a member of the organization
if: contains(github.event.pull_request.labels.*.name, 'ok-to-test') || contains(fromJSON('["COLLABORATOR", "MEMBER", "OWNER"]'), github.event.pull_request.author_association)
strategy:
matrix:
k8s:
- version: v1.28.0
attribute: penultimate
- version: v1.29.0
attribute: previous
- version: default
attribute: latest
runs-on: ubuntu-22.04
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
go-version: 1.22.4
- uses: docker/[email protected]
- uses: tale/[email protected]
with:
kubectl-version: v1.30.0
# Empty kubeconfig file
base64-kube-config: "YXBpVmVyc2lvbjogdjEKa2luZDogQ29uZmlnCnByZWZlcmVuY2VzOiB7fQo="
- run: |
if [ "${{ matrix.k8s.version }}" = "default" ]; then
# For latest version use default from Makefile
make test-e2e
else
K8S_VERSION=${{ matrix.k8s.version }} make test-e2e
fi