File tree Expand file tree Collapse file tree 3 files changed +19
-7
lines changed
Expand file tree Collapse file tree 3 files changed +19
-7
lines changed Original file line number Diff line number Diff line change 99jobs :
1010 test :
1111 runs-on : ${{ matrix.os }}
12+ defaults :
13+ run :
14+ shell : bash
1215 strategy :
1316 fail-fast : false
1417 matrix :
@@ -37,14 +40,14 @@ jobs:
3740 run : go mod download
3841
3942 - name : Run tests
40- run : go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
43+ run : go test -v -race -coverprofile=coverage.out -covermode=atomic ./...
4144
4245 - name : Upload coverage to Codecov
4346 if : matrix.os == 'ubuntu-latest' && matrix.go == '1.22'
4447 uses : codecov/codecov-action@v4
4548 with :
4649 token : ${{ secrets.CODECOV_TOKEN }}
47- file : ./coverage.txt
50+ file : ./coverage.out
4851 flags : unittests
4952 name : codecov-umbrella
5053
9194 uses : actions/upload-artifact@v4
9295 with :
9396 name : build-artifacts
94- path : dist/
97+ path : dist/
Original file line number Diff line number Diff line change 3636 run : go test -v ./...
3737
3838 - name : Run GoReleaser
39+ if : ${{ secrets.HOMEBREW_TAP_TOKEN != '' }}
3940 uses : goreleaser/goreleaser-action@v6
4041 with :
4142 version : latest
4445 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4546 HOMEBREW_TAP_TOKEN : ${{ secrets.HOMEBREW_TAP_TOKEN }}
4647
48+ - name : Run GoReleaser (skip Homebrew tap update)
49+ if : ${{ secrets.HOMEBREW_TAP_TOKEN == '' }}
50+ uses : goreleaser/goreleaser-action@v6
51+ with :
52+ version : latest
53+ args : release --clean --skip=brews
54+ env :
55+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
56+
4757 - name : Upload assets
4858 uses : actions/upload-artifact@v4
4959 if : always()
5060 with :
5161 name : release-artifacts
52- path : dist/
62+ path : dist/
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ linters:
1919 - staticcheck
2020 - typecheck
2121 - unused
22+ - shadow
2223
2324 disable :
2425 - errcheck
@@ -29,8 +30,6 @@ linters:
2930 - unparam
3031
3132linters-settings :
32- govet :
33- check-shadowing : true
3433 gocyclo :
3534 min-complexity : 15
3635 gocognit :
@@ -74,4 +73,4 @@ issues:
7473 - dupl
7574 - linters :
7675 - lll
77- source : " ^//go:generate "
76+ source : " ^//go:generate "
You can’t perform that action at this time.
0 commit comments