Skip to content

Commit

Permalink
Updated Go to 1.18 for gh Action
Browse files Browse the repository at this point in the history
  • Loading branch information
msoap committed Apr 23, 2022
1 parent c5763a2 commit f54434f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go: ['1.16.x', '1.17.x']
go: ['1.17.x', '1.18.x']
steps:
- uses: actions/checkout@v2

Expand All @@ -24,11 +24,9 @@ jobs:
go-version: ${{ matrix.go }}

- name: Install errcheck
if: ${{ startsWith(matrix.go, '1.17') }}
run: go install github.com/kisielk/errcheck@latest

- name: errcheck
if: ${{ startsWith(matrix.go, '1.17') }}
run: errcheck -verbose ./...

- name: gofmt check
Expand All @@ -38,7 +36,7 @@ jobs:
run: go test -race -v ./...

- name: Coveralls
if: ${{ startsWith(matrix.go, '1.17') && github.event_name == 'push' }}
if: ${{ startsWith(matrix.go, '1.18') && github.event_name == 'push' }}
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
Expand Down

0 comments on commit f54434f

Please sign in to comment.