Skip to content

Commit

Permalink
chore: try updated golangci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
k-yang committed Sep 18, 2023
1 parent 99a1781 commit eaa451e
Showing 1 changed file with 12 additions and 15 deletions.
27 changes: 12 additions & 15 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,19 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: 1.19
cache: false # the golangci-lint action already caches for us (https://github.com/golangci/golangci-lint-action#performance)

- name: sanity check
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.50.0
golangci-lint run
# - name: golangci-lint
# uses: golangci/golangci-lint-action@v3
# with:
# # 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.52.1
#
# # Optional: working directory, useful for monorepos
# # working-directory: somedir
#
# # Optional: golangci-lint command line arguments.
# args: --fix=false
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
# 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: --fix=false

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

0 comments on commit eaa451e

Please sign in to comment.