File tree Expand file tree Collapse file tree 1 file changed +8
-13
lines changed Expand file tree Collapse file tree 1 file changed +8
-13
lines changed Original file line number Diff line number Diff line change 15
15
jobs :
16
16
lint :
17
17
timeout-minutes : 15
18
- name : " ${{ matrix.goos }} ${{ matrix.os }} | go ${{ matrix.canary }}"
19
- runs-on : ${{ matrix.os }}
18
+ name : " ${{ matrix.goos }} ${{ matrix.runner }} | go ${{ matrix.canary }}"
19
+ runs-on : ${{ matrix.runner }}
20
20
defaults :
21
21
run :
22
22
shell : bash
23
23
strategy :
24
24
matrix :
25
25
include :
26
- - os : ubuntu-24.04
27
- - os : macos-15
28
- - os : windows-2022
29
- - os : ubuntu-24.04
26
+ - runner : ubuntu-24.04
27
+ - runner : macos-15
28
+ - runner : windows-2022
29
+ - runner : ubuntu-24.04
30
30
goos : freebsd
31
- - os : ubuntu-24.04
31
+ - runner : ubuntu-24.04
32
32
canary : go-canary
33
33
steps :
34
34
- name : " Checkout project"
@@ -58,16 +58,11 @@ jobs:
58
58
brew install yamllint shellcheck
59
59
fi
60
60
echo "::endgroup::"
61
- - if : ${{ env.GO_VERSION != '' }}
61
+ - if : ${{ env.GO_VERSION != '' && env.RUNNER_OS == 'Linux' && matrix.goos == '' }}
62
62
name : " lint"
63
63
env :
64
64
NO_COLOR : true
65
65
run : |
66
- if [ "$RUNNER_OS" != "Linux" ] || [ "${{ matrix.goos }}" != "" ]; then
67
- echo "It is not necessary to run the linter on this platform (${{ env.RUNNER_OS }} ${{ matrix.goos }})"
68
- exit
69
- fi
70
-
71
66
echo "::group:: lint"
72
67
cd mod/tigron
73
68
export LINT_COMMIT_RANGE="$(jq -r '.after + "..HEAD"' ${GITHUB_EVENT_PATH})"
You can’t perform that action at this time.
0 commit comments