Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ jobs:
make test
- name: Checks
run: |
sudo apt-get install moreutils -y
make check_vuln check_tidy
make checks

# platforms:
# runs-on: ${{ matrix.os }}
Expand Down
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ short-test:
lint:
go run github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.1.5 run -v

.PHONY: checks
checks: check_tidy check_vuln check_modern

.PHONY: check_vuln
check_vuln:
go run golang.org/x/vuln/cmd/govulncheck@v1.1.4 ./...
Expand All @@ -33,3 +36,9 @@ check_tidy:
go mod tidy
# Verify that `go mod tidy` didn't introduce any changes. Run go mod tidy before pushing.
git diff --exit-code --stat go.mod go.sum

.PHONY: check_modern
check_modern:
go run golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@v0.20.0 ./...
# non-zero exit status on issues found
# nb: modernize is not part of golangci-lint yet - https://github.com/golangci/golangci-lint/issues/686
Loading