Skip to content

Commit

Permalink
fix GitHub actions golang lint workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
alelevinas committed Mar 20, 2024
1 parent 19b4afe commit efbdf21
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,26 @@ on:
branches:
- master
pull_request:

permissions:
contents: read
pull-requests: read

jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '^1.18'
go-version: '1.21'
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
uses: golangci/golangci-lint-action@v4
with:
version: v1.51.2
args: cardinality/...
# Require: The version of golangci-lint to use.
version: v1.54

# Optional: working directory, useful for monorepos
working-directory: cardinality
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,4 @@ If you'd prefer to use docker to build and run all tests use

## Linting

```go run github.com/golangci/golangci-lint/cmd/golangci-lint@v1.53.1 run```
```go run github.com/golangci/golangci-lint/cmd/golangci-lint@v1.54.0 run```

0 comments on commit efbdf21

Please sign in to comment.