From c7101d32d574c90f20bc630aa95766cadba59605 Mon Sep 17 00:00:00 2001 From: Thomas Bruyelle Date: Tue, 1 Oct 2024 09:50:37 +0200 Subject: [PATCH] lint in Makefile --- .github/workflows/{golangci.yml => lint.yml} | 8 ++++---- Makefile | 3 +++ 2 files changed, 7 insertions(+), 4 deletions(-) rename .github/workflows/{golangci.yml => lint.yml} (94%) diff --git a/.github/workflows/golangci.yml b/.github/workflows/lint.yml similarity index 94% rename from .github/workflows/golangci.yml rename to .github/workflows/lint.yml index b010524..d66d226 100644 --- a/.github/workflows/golangci.yml +++ b/.github/workflows/lint.yml @@ -11,14 +11,14 @@ 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 @@ -26,7 +26,7 @@ jobs: # 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 @@ -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" \ No newline at end of file + # install-mode: "goinstall" diff --git a/Makefile b/Makefile index 4922e39..ea15453 100644 --- a/Makefile +++ b/Makefile @@ -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/golangci-lint@v1.59.1 run ./...