Commit 03386ba 1 parent 393c373 commit 03386ba Copy full SHA for 03386ba
File tree 4 files changed +36
-11
lines changed
4 files changed +36
-11
lines changed Original file line number Diff line number Diff line change
1
+ self-hosted-runner :
2
+ labels :
3
+ - gen3
4
+ - large
5
+ - small
Original file line number Diff line number Diff line change 5
5
branches :
6
6
- main
7
7
8
+ defaults :
9
+ run :
10
+ shell : bash -euo pipefail {0}
11
+
8
12
jobs :
9
13
golangci :
10
14
name : golangci-lint
40
44
go mod tidy
41
45
- name : check diff
42
46
run : |
43
- if ! ( test -z "$(git ls-files --exclude-standard --others .)$(git diff .)") ; then
47
+ if ! test -z "$(git ls-files --exclude-standard --others .)$(git diff .)"; then
44
48
git ls-files --exclude-standard --others .
45
49
git diff .
46
50
echo "ERROR: 'go mod tidy' modified the source tree."
61
65
make manifests
62
66
- name : check diff
63
67
run : |
64
- if ! ( test -z "$(git ls-files --exclude-standard --others .)$(git diff .)") ; then
68
+ if ! test -z "$(git ls-files --exclude-standard --others .)$(git diff .)"; then
65
69
git ls-files --exclude-standard --others .
66
70
git diff .
67
71
echo "ERROR: 'make manifests' modified the source tree."
79
83
make generate
80
84
- name : check diff
81
85
run : |
82
- if ! ( test -z "$(git ls-files --exclude-standard --others .)$(git diff .)") ; then
86
+ if ! test -z "$(git ls-files --exclude-standard --others .)$(git diff .)"; then
83
87
git ls-files --exclude-standard --others .
84
88
git diff .
85
89
echo "ERROR: 'make generate' modified the source tree."
@@ -96,3 +100,17 @@ jobs:
96
100
with :
97
101
check_hidden : true
98
102
skip : go.sum,*.patch # '*.patch' references cluster-autoscaler/ca.patch, but somehow skipping directly doesn't work...
103
+
104
+ actionlint :
105
+ runs-on : ubuntu-latest
106
+ steps :
107
+ - uses : actions/checkout@v4
108
+ - uses : reviewdog/action-actionlint@54e8faeff91fe07595b1ad3cfdc6aee0157bf51b # v1.40.0
109
+ env :
110
+ # SC2046 - Quote this to prevent word splitting. - https://www.shellcheck.net/wiki/SC2046
111
+ # SC2086 - Double quote to prevent globbing and word splitting. - https://www.shellcheck.net/wiki/SC2086
112
+ SHELLCHECK_OPTS : --exclude=SC2046,SC2086
113
+ with :
114
+ fail_on_error : true
115
+ filter_mode : nofilter
116
+ level : error
Original file line number Diff line number Diff line change @@ -33,13 +33,15 @@ jobs:
33
33
- name : get version and git info
34
34
id : get_vcs_info
35
35
run : |
36
- echo "version=${{ github.ref_name }}" >> $GITHUB_OUTPUT
37
- echo -n "git_info=" >> $GITHUB_OUTPUT
38
- # note: --tags enables matching on lightweight (i.e. not annotated) tags, which normally
39
- # wouldn't be necessary, except that actions/checkout@v3 does weird things to setup the
40
- # repository that means that we actually end up checked out with *just* a lightweight tag
41
- # to the tagged commit.
42
- git describe --tags --long --dirty >> $GITHUB_OUTPUT
36
+ {
37
+ echo "version=${{ github.ref_name }}"
38
+ echo -n "git_info="
39
+ # note: --tags enables matching on lightweight (i.e. not annotated) tags, which normally
40
+ # wouldn't be necessary, except that actions/checkout@v3 does weird things to setup the
41
+ # repository that means that we actually end up checked out with *just* a lightweight tag
42
+ # to the tagged commit.
43
+ git describe --tags --long --dirty
44
+ } >> $GITHUB_OUTPUT
43
45
- name : get CA base git tag
44
46
id : get_ca_tag
45
47
run : |
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ jobs:
105
105
elif [ -z "${CACHED_IMAGE}" ]; then
106
106
# there's no image to retag
107
107
RETAG_NEEDED=false
108
- elif [ -n "${FORCED_TAG}"]; then
108
+ elif [ -n "${FORCED_TAG}" ]; then
109
109
# we're asked to return image for a specific tag, so no need to retag
110
110
RETAG_NEEDED=false
111
111
elif [ "${FORCE_REBUILD}" == "true" ]; then
You can’t perform that action at this time.
0 commit comments