Skip to content

Commit

Permalink
fix linter installation in CI (#140)
Browse files Browse the repository at this point in the history
* fix linter installation in CI

* try again

* enable and disable some linters

* disable depguard linter

* disable govet linter

* disable staticcheck linter

* remove scopelint linter
  • Loading branch information
awalterschulze authored Jan 30, 2025
1 parent 2292f9e commit 55e5c2e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go: [1.19]
go: [1.23]
env:
working-directory: ./src/github.com/goccmack/gocc

Expand All @@ -31,7 +31,7 @@ jobs:
path: src/github.com/goccmack/gocc

- name: Install linter
run: "curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.50.1 && go install golang.org/x/tools/cmd/goimports@latest"
run: "curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.63.4"
working-directory: ${{env.working-directory}}

- name: Check
Expand Down
8 changes: 3 additions & 5 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,18 @@ run:
timeout: 60s
linters:
enable:
- depguard
- dogsled
- dupl
- errcheck
- gocyclo
- gofmt
- goimports
- govet
- misspell
- prealloc
- scopelint
- unconvert
- whitespace
disable:
- deadcode
- unused
- varcheck
- depguard
- govet
- staticcheck
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module github.com/goccmack/gocc

go 1.19
go 1.23

require golang.org/x/mod v0.8.0

0 comments on commit 55e5c2e

Please sign in to comment.