Skip to content

Commit

Permalink
Update go workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dhaavi committed Sep 26, 2023
1 parent 863e870 commit 1125f87
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,24 @@ jobs:
name: Linter
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
- name: Check out code
uses: actions/checkout@v3

- uses: actions/setup-go@v3
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '^1.19'

- name: Get dependencies
run: go mod download

- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.49.0
version: v1.52.2
only-new-issues: true
args: -c ./.golangci.yml --timeout 15m

- name: Get dependencies
run: go mod download

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

Expand All @@ -43,7 +44,7 @@ jobs:
uses: actions/checkout@v3

- name: Setup Go
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: '^1.19'

Expand Down

0 comments on commit 1125f87

Please sign in to comment.