forked from alexandrevilain/temporal-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
77 lines (69 loc) · 2.32 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
name: End2End tests
on:
push:
branches: [main]
pull_request:
branches: [main]
defaults:
run:
shell: bash
env:
KIND_VERSION: v0.22.0
OPERATOR_IMAGE_PATH: /tmp/temporal-operator.tar
jobs:
run-e2e:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
kube-version:
- tag: v1.25.16
kind-image: kindest/node:v1.25.16@sha256:e8b50f8e06b44bb65a93678a65a26248fae585b3d3c2a669e5ca6c90c69dc519
- tag: v1.26.14
kind-image: kindest/node:v1.26.14@sha256:5d548739ddef37b9318c70cb977f57bf3e5015e4552be4e27e57280a8cbb8e4f
- tag: v1.27.11
kind-image: kindest/node:v1.27.11@sha256:681253009e68069b8e01aad36a1e0fa8cf18bb0ab3e5c4069b2e65cafdd70843
- tag: v1.28.7
kind-image: kindest/node:v1.28.7@sha256:9bc6c451a289cf96ad0bbaf33d416901de6fd632415b076ab05f5fa7e4f65c58
- tag: v1.29.2
kind-image: kindest/node:v1.29.2@sha256:51a1434a5397193442f0be2a297b488b6c919ce8a3931be0ce822606ea5ca245
name: Run generate E2E tests
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
check-latest: true
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build
uses: docker/build-push-action@v5
with:
context: .
push: false
tags: temporal-operator:latest
cache-from: type=gha
cache-to: type=gha
outputs: type=docker,dest=${{ env.OPERATOR_IMAGE_PATH }}
- name: Install Kind
uses: helm/kind-action@v1
with:
install_only: true
version: ${{ env.KIND_VERSION }}
- name: Free some disk space
run: sudo rm -rf /usr/share/dotnet && sudo rm -rf /opt/ghc && sudo rm -rf "/usr/local/share/boost"
- name: Run e2e test suite
run: make test-e2e
env:
OPERATOR_IMAGE_PATH: ${{ env.OPERATOR_IMAGE_PATH }}
KUBERNETES_VERSION: ${{ matrix.kube-version.tag }}
KIND_IMAGE: ${{ matrix.kube-version.kind-image }}
- name: Archive e2e logs
uses: actions/upload-artifact@v3
if: always()
with:
name: e2e-artifacts
path: out/tests/e2e/