We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df804b6 commit f372403Copy full SHA for f372403
1 file changed
.github/workflows/ci.yml
@@ -37,13 +37,23 @@ jobs:
37
go install honnef.co/go/tools/cmd/staticcheck@v0.7.0
38
go install mvdan.cc/gofumpt@v0.9.2
39
go install github.com/securego/gosec/v2/cmd/gosec@v2.26.1
40
+ go install golang.org/x/tools/cmd/deadcode@v0.45.0
41
42
- name: Vet
43
run: go vet ./...
44
45
- name: Staticcheck
46
run: '"$(go env GOPATH)/bin/staticcheck" ./...'
47
48
+ - name: Deadcode
49
+ run: |
50
+ output_file=$(mktemp)
51
+ "$(go env GOPATH)/bin/deadcode" -test ./... > "$output_file"
52
+ if [ -s "$output_file" ]; then
53
+ cat "$output_file"
54
+ exit 1
55
+ fi
56
+
57
- name: Gofumpt
58
run: |
59
changed="$("$(go env GOPATH)/bin/gofumpt" -l .)"
0 commit comments