File tree Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -58,16 +58,20 @@ jobs:
58
58
brew install yamllint shellcheck
59
59
fi
60
60
echo "::endgroup::"
61
- - if : ${{ env.GO_VERSION != '' && env.RUNNER_OS == 'Linux' && matrix.goos == '' }}
61
+ - if : ${{ env.GO_VERSION != '' && matrix.goos == '' }}
62
62
name : " lint"
63
63
env :
64
64
NO_COLOR : true
65
65
run : |
66
- echo "::group:: lint"
67
- cd mod/tigron
68
- export LINT_COMMIT_RANGE="$(jq -r '.after + "..HEAD"' ${GITHUB_EVENT_PATH})"
69
- make lint
70
- echo "::endgroup::"
66
+ if [ "$RUNNER_OS" == Linux ]; then
67
+ echo "::group:: lint"
68
+ cd mod/tigron
69
+ export LINT_COMMIT_RANGE="$(jq -r '.after + "..HEAD"' ${GITHUB_EVENT_PATH})"
70
+ make lint
71
+ echo "::endgroup::"
72
+ else
73
+ echo "Lint is disabled on $RUNNER_OS"
74
+ fi
71
75
- if : ${{ env.GO_VERSION != '' }}
72
76
name : " test-unit"
73
77
run : |
Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ lint-licenses-all:
182
182
&& GOOS=linux make lint-licenses \
183
183
&& GOOS=windows make lint-licenses \
184
184
&& GOOS=freebsd make lint-licenses \
185
- && GOOS=darwin make lint-go
185
+ && GOOS=darwin make lint-licenses
186
186
$(call footer, $@ )
187
187
188
188
# #########################
@@ -200,7 +200,7 @@ fix-go-all:
200
200
&& GOOS=linux make fix-go \
201
201
&& GOOS=windows make fix-go \
202
202
&& GOOS=freebsd make fix-go \
203
- && GOOS=darwin make lint -go
203
+ && GOOS=darwin make fix -go
204
204
$(call footer, $@ )
205
205
206
206
fix-mod :
You can’t perform that action at this time.
0 commit comments