Skip to content

Commit

Permalink
Move go vet before golint
Browse files Browse the repository at this point in the history
  • Loading branch information
nstratos committed Mar 24, 2021
1 parent 4586de0 commit 5be2fe0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/tests.yml
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- name: Download modules
- name: Download go modules
run: go mod download

- name: Cache go modules
Expand All @@ -40,14 +40,14 @@ jobs:
if: runner.os != 'Windows'
run: '[ -z $(gofmt -s -l .) ] || (gofmt -s -d . && exit 1)'

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

- name: Run golint
run: |
go install golang.org/x/lint/golint
golint `go list ./... | grep -v /vendor/`
- name: Run go vet
run: go vet ./...

- name: Run go test
run: go test -v -race -covermode=atomic -coverprofile=coverage.out ./...

Expand Down

0 comments on commit 5be2fe0

Please sign in to comment.