Skip to content

Commit

Permalink
ci: sanity check
Browse files Browse the repository at this point in the history
  • Loading branch information
Unique-Divine committed Sep 18, 2023
1 parent b4b6dd1 commit 99a1781
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,21 @@ jobs:
with:
go-version: 1.19

- 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: 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

# 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 99a1781

Please sign in to comment.