-
Notifications
You must be signed in to change notification settings - Fork 4.7k
91 lines (79 loc) · 2.85 KB
/
e2e.yml
File metadata and controls
91 lines (79 loc) · 2.85 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
---
name: e2e
'on':
- push
- pull_request
env:
GOPROXY: https://proxy.golang.org
GOPATH: ${{ github.workspace }}/go
permissions:
contents: read
jobs:
tests-e2e-scenarios-bare-metal:
runs-on: ubuntu-24.04
timeout-minutes: 70
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
with:
path: ${{ env.GOPATH }}/src/k8s.io/kops
fetch-depth: 3
- name: Set up go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c
with:
go-version-file: '${{ env.GOPATH }}/src/k8s.io/kops/go.mod'
- name: dev/tasks/free-disk-space-on-github-actions-runner
working-directory: ${{ env.GOPATH }}/src/k8s.io/kops
run: |
dev/tasks/free-disk-space-on-github-actions-runner
- name: tests/e2e/scenarios/bare-metal/run-test
working-directory: ${{ env.GOPATH }}/src/k8s.io/kops
run: |
CHANGED_VERSION=$(git diff --name-only HEAD~2 | grep -E '^kops-version\.go$' || true)
if [ -z "${CHANGED_VERSION}" ]
then
timeout 60m tests/e2e/scenarios/bare-metal/run-test
else
echo "kops-version.go has been modified, skipping test"
fi
env:
ARTIFACTS: /tmp/artifacts
- name: Archive production artifacts
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
with:
name: tests-e2e-scenarios-bare-metal
path: /tmp/artifacts/
tests-e2e-scenarios-bare-metal-ipv6:
runs-on: ubuntu-24.04
timeout-minutes: 70
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
with:
path: ${{ env.GOPATH }}/src/k8s.io/kops
fetch-depth: 3
- name: Set up go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c
with:
go-version-file: '${{ env.GOPATH }}/src/k8s.io/kops/go.mod'
- name: dev/tasks/free-disk-space-on-github-actions-runner
working-directory: ${{ env.GOPATH }}/src/k8s.io/kops
run: |
dev/tasks/free-disk-space-on-github-actions-runner
- name: tests/e2e/scenarios/bare-metal/run-test
working-directory: ${{ env.GOPATH }}/src/k8s.io/kops
run: |
CHANGED_VERSION=$(git diff --name-only HEAD~2 | grep -E '^kops-version\.go$' || true)
if [ -z "${CHANGED_VERSION}" ]
then
timeout 60m tests/e2e/scenarios/bare-metal/scenario-ipv6
else
echo "kops-version.go has been modified, skipping test"
fi
env:
ARTIFACTS: /tmp/artifacts
- name: Archive production artifacts
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
with:
name: tests-e2e-scenarios-bare-metal-ipv6
path: /tmp/artifacts/