Skip to content

Commit

Permalink
Add revive tool
Browse files Browse the repository at this point in the history
  • Loading branch information
QuangTung97 committed Apr 4, 2024
1 parent 94ef309 commit eebbae0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
- uses: actions/setup-go@v2
with:
go-version: "1.21.9"
- name: Install Tools
run: make install-tools
- name: Lint
run: make lint
- name: Test
Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: test lint build coverage
.PHONY: test lint build coverage install-tools

test:
go test -race -p 1 -count=1 -tags=integration -covermode=atomic -coverprofile=coverage.out ./...
Expand All @@ -13,3 +13,6 @@ build:

coverage:
go tool cover -func coverage.out | grep ^total

install-tools:
go install github.com/mgechev/revive
7 changes: 7 additions & 0 deletions tools.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
//go:build tools

package tools

import (
_ "github.com/mgechev/revive"
)

0 comments on commit eebbae0

Please sign in to comment.