File tree Expand file tree Collapse file tree 2 files changed +1
-20
lines changed Expand file tree Collapse file tree 2 files changed +1
-20
lines changed Original file line number Diff line number Diff line change 12
12
GOLANGCI_LINT_VERSION : v1.60
13
13
14
14
jobs :
15
- detect-modules :
16
- runs-on : ubuntu-latest
17
- outputs :
18
- modules : ${{ steps.set-modules.outputs.modules }}
19
- steps :
20
- - uses : actions/checkout@v4
21
- - uses : actions/setup-go@v5
22
- with :
23
- go-version : ${{ env.GO_VERSION }}
24
- - id : set-modules
25
- run : echo "modules=$(go list -m -json | jq -s '.' | jq -c '[.[].Dir]')" >> $GITHUB_OUTPUT
26
-
27
15
golangci-lint :
28
- needs : detect-modules
29
16
runs-on : ubuntu-latest
30
- strategy :
31
- matrix :
32
- modules : ${{ fromJSON(needs.detect-modules.outputs.modules) }}
33
17
steps :
34
18
- uses : actions/checkout@v4
35
19
- uses : actions/setup-go@v5
36
20
with :
37
21
go-version : ${{ env.GO_VERSION }}
38
- - name : golangci-lint ${{ matrix.modules }}
22
+ - name : golangci-lint Action
39
23
uses : golangci/golangci-lint-action@v6
40
24
with :
41
- version : ${{ env.GOLANGCI_LINT_VERSION }}
42
25
args : --timeout=3m
43
- working-directory : ${{ matrix.modules }}
44
26
45
27
terraform-tests :
46
28
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 43
43
uses : goreleaser/goreleaser-action@v6
44
44
with :
45
45
args : release --clean
46
- workdir : ./terraform
47
46
env :
48
47
GITHUB_TOKEN : ${{ secrets.GH_TOKEN_FOR_TERRAFORM_REPO }}
49
48
GPG_FINGERPRINT : ${{ steps.import_gpg.outputs.fingerprint }}
You can’t perform that action at this time.
0 commit comments