File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3636 with :
3737 version : ${{ env.GOLANGCI_LINT_VERSION }}
3838
39- detect-modules :
40- runs-on : ubuntu-latest
41- outputs :
42- modules : ${{ steps.set-modules.outputs.modules }}
43- steps :
44- - uses : actions/checkout@v4
45- - uses : actions/setup-go@v5
46- with :
47- go-version : ${{ env.GO_VERSION }}
48- - id : set-modules
49- run : echo "modules=$(go list -m -json | jq -s '.' | jq -c '[.[].Dir]')" >> $GITHUB_OUTPUT
50-
51- golangci-lint :
52- needs : detect-modules
53- runs-on : ubuntu-latest
54- strategy :
55- matrix :
56- modules : ${{ fromJSON(needs.detect-modules.outputs.modules) }}
57- steps :
58- - uses : actions/checkout@v4
59- - uses : actions/setup-go@v5
60- with :
61- go-version : ${{ env.GO_VERSION }}
62- - name : golangci-lint ${{ matrix.modules }}
63- uses : golangci/golangci-lint-action@v8
64- with :
65- version : ${{ env.GOLANGCI_LINT_VERSION }}
66- working-directory : ${{ matrix.modules }}
67-
6839 tests :
6940 needs : lint
7041 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments