Skip to content

Commit

Permalink
chore: support go 1.18
Browse files Browse the repository at this point in the history
  • Loading branch information
nrwiersma committed Mar 19, 2022
1 parent 93a7d90 commit 90ba6f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:

strategy:
matrix:
go-version: [ 1.16, 1.17 ]
go-version: [ 1.17, 1.18 ]
runs-on: ubuntu-latest
env:
GOLANGCI_LINT_VERSION: v1.42.0
GOLANGCI_LINT_VERSION: v1.45.0

steps:
- name: Install Go
Expand All @@ -32,10 +32,12 @@ jobs:
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Run linter
uses: golangci/golangci-lint-action@v2
with:
version: ${{ env.GOLANGCI_LINT_VERSION }}
args: --go ${{ matrix.go-version }}

- name: Run tests
run: go test -covermode=count -coverprofile=coverage.out ./...
Expand Down
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ linters:
- goerr113
- gomnd
- nlreturn
- varnamelen
- wrapcheck
- wsl

Expand Down

0 comments on commit 90ba6f2

Please sign in to comment.