File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 20
20
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
21
21
with :
22
22
path : ${{ env.GOPATH }}/src/k8s.io/kops
23
+ fetch-depth : 2
23
24
24
25
- name : Set up go
25
26
uses : actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b
29
30
- name : tests/e2e/scenarios/bare-metal/run-test
30
31
working-directory : ${{ env.GOPATH }}/src/k8s.io/kops
31
32
run : |
32
- timeout 60m tests/e2e/scenarios/bare-metal/run-test
33
+ CHANGED_VERSION=$(git diff --name-only HEAD~1 | grep -E '^kops-version\.go$')
34
+ if [ -z "${CHANGED_VERSION}" ]
35
+ then
36
+ echo "running metal test"
37
+ timeout 60m tests/e2e/scenarios/bare-metal/run-test
38
+ else
39
+ echo "kops-version.go has been modified, skipping metal test"
40
+ fi
33
41
env :
34
42
ARTIFACTS : /tmp/artifacts
43
+
35
44
- name : Archive production artifacts
36
45
if : always()
37
46
uses : actions/upload-artifact@v4
You can’t perform that action at this time.
0 commit comments