Skip to content

Commit

Permalink
Run golangci-lint as part of build workflow
Browse files Browse the repository at this point in the history
Given the additional .golangci.yml changes this should roughly represent
the linting tools mentioned in the README not already called from the
Makefile.
  • Loading branch information
eest committed Dec 13, 2024
1 parent 637dbad commit a01f871
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,9 @@ jobs:
go-version: ${{ matrix.go-version }}
- name: Display Go version
run: go version
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.60
- name: Build
run: make build
2 changes: 2 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
linters:
enable:
- revive
- gofumpt
- gosec

0 comments on commit a01f871

Please sign in to comment.