Skip to content

Commit

Permalink
lint in Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
tbruyelle committed Oct 1, 2024
1 parent d25012d commit c7101d3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/golangci.yml → .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,22 @@ permissions:
# pull-requests: read

jobs:
golangci:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: "1.21"
go-version: "1.22"
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
# Require: The version of golangci-lint to use.
# When `install-mode` is `binary` (default) the value can be v1.2 or v1.2.3 or `latest` to use the latest version.
# When `install-mode` is `goinstall` the value can be v1.2.3, `latest`, or the hash of a commit.
version: v1.54
version: v1.59.1

# Optional: working directory, useful for monorepos
# working-directory: somedir
Expand All @@ -51,4 +51,4 @@ jobs:
# skip-build-cache: true

# Optional: The mode to install golangci-lint. It can be 'binary' or 'goinstall'.
# install-mode: "goinstall"
# install-mode: "goinstall"
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ gob:

json:
go run cmd/gen/main.go --root-dir "/Users/jdkato/Documents/Code/Gno/gno" --format json

lint:
go run github.com/golangci/golangci-lint/cmd/[email protected] run ./...

0 comments on commit c7101d3

Please sign in to comment.