Skip to content

Commit

Permalink
fix lint check
Browse files Browse the repository at this point in the history
  • Loading branch information
basiooo committed Apr 14, 2024
1 parent 75e41cd commit 37f0cc4
Showing 1 changed file with 27 additions and 6 deletions.
33 changes: 27 additions & 6 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@ jobs:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
cache: false
go-version: 1.21.4
go-version: 1.22.2

- name: Verify dependencies
run: go mod verify
Expand All @@ -27,7 +26,29 @@ jobs:
- name: Run go test
run: go test ./...

- name: golangci-lint
uses: golangci/golangci-lint-action@v4

- name: Run golangci-lint
uses: golangci/[email protected]
with:
version: v4.0.0
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: v1.54.2

# Optional: working directory, useful for monorepos
# working-directory: somedir

# Optional: golangci-lint command line arguments.
args: --exclude-use-default
# --issues-exit-code=0

# Optional: show only new issues if it's a pull request. The default value is `false`.
# only-new-issues: true

# Optional: if set to true then the all caching functionality will be complete disabled,
# takes precedence over all other caching options.
# skip-cache: true

# Optional: if set to true then the action don't cache or restore ~/go/pkg.
skip-pkg-cache: false

# Optional: if set to true then the action don't cache or restore ~/.cache/go-build.
# skip-build-cache: true

0 comments on commit 37f0cc4

Please sign in to comment.