Skip to content

Commit

Permalink
ci: update go to 1.20, staticcheck, and gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
davidyuk committed Jul 3, 2023
1 parent ed681a4 commit b5746a1
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v2
- uses: actions/setup-go@v4
with:
go-version: 1.16
go-version: '1.20'

- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Lint
run: |
go get honnef.co/go/tools/cmd/staticcheck@v0.2.0
go install honnef.co/go/tools/cmd/staticcheck@v0.4.3
make lint
- run: make test-unit
Expand All @@ -24,12 +24,7 @@ jobs:
done
- run: make test-integration

- name: Build
if: true != startsWith(github.ref, 'refs/tags/')
run: make build-release

- name: Build release
if: startsWith(github.ref, 'refs/tags/')
run: make build-release

- name: Publish release
Expand Down

0 comments on commit b5746a1

Please sign in to comment.