Skip to content

Commit

Permalink
Update lint workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
roeldev committed Feb 11, 2024
1 parent 9f19ebb commit 0adbefa
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,20 @@ jobs:
- uses: actions/setup-go@v5
with:
go-version: stable
- uses: golangci/golangci-lint-action@v3

- name: Verify formatting
run: gofmt -s -w . && git diff --exit-code

- name: Run go vet
run: go vet ./...

- name: Verify tidy modules
run: go mod tidy && git diff --exit-code

- name: Verify dependencies
run: go mod download && go mod verify

- name: Run linter
uses: golangci/golangci-lint-action@v4
with:
version: latest

0 comments on commit 0adbefa

Please sign in to comment.