Skip to content

Commit

Permalink
Merge pull request #143 from digitalocean/asb/fix-golint
Browse files Browse the repository at this point in the history
ci: Fix golangci linter failure
  • Loading branch information
andrewsomething authored May 16, 2024
2 parents 3daddc1 + 6f6e1c2 commit eeb001c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
test:
strategy:
matrix:
go-version: [1.20.x, 1.21.x]
go-version: [1.21.x, 1.22.x]
os: [ubuntu-latest, macos-latest, windows-latest]

runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -40,10 +40,8 @@ jobs:
if: matrix.os == 'ubuntu-latest'

- name: Lint with golangci-lint
uses: golangci/golangci-lint-action@v3
with:
only-new-issues: true
if: matrix.os == 'ubuntu-latest'
run: make lint

- name: Run unit tests
run: make test
Expand Down
2 changes: 1 addition & 1 deletion GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ check-generate: generate
fi

install-golangci-lint:
@go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
@go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.56.2

lint: install-golangci-lint
@golangci-lint run ./...
Expand Down

0 comments on commit eeb001c

Please sign in to comment.