-
-
Notifications
You must be signed in to change notification settings - Fork 36
79 lines (75 loc) · 2.18 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
name: End2End tests
on:
push:
branches: [main]
pull_request:
branches: [main]
defaults:
run:
shell: bash
env:
GO_VERSION: "1.21.5"
KIND_VERSION: v0.19.0
OPERATOR_IMAGE_PATH: /tmp/temporal-operator.tar
WORKER_PROCESS_IMAGE_PATH: /tmp/example-worker-process.tar
jobs:
run-e2e:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
kube-version:
- v1.25.11
- v1.26.6
- v1.27.3
- v1.28.0
name: Run generate E2E tests
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
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: Build worker-process
uses: docker/build-push-action@v5
with:
context: ./examples/worker-process/helloworld
push: false
tags: example-worker-process:latest
cache-from: type=gha
cache-to: type=gha
outputs: type=docker,dest=${{ env.WORKER_PROCESS_IMAGE_PATH }}
# e2e-framework uses kind v0.12.0 as default value
- name: Install kind
uses: helm/kind-action@v1.8.0
with:
version: ${{ env.KIND_VERSION }}
install_only: true
- 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 }}
WORKER_PROCESS_IMAGE_PATH: ${{ env.WORKER_PROCESS_IMAGE_PATH }}
KUBERNETES_VERSION: ${{ matrix.kube-version }}
- name: Archive e2e logs
uses: actions/upload-artifact@v3
if: always()
with:
name: e2e-artifacts
path: out/tests/e2e/