From 07a560180e675cae6e5a3fa1ff74a11f56d1d5ad Mon Sep 17 00:00:00 2001 From: buddh0 Date: Mon, 9 Dec 2024 16:24:47 +0800 Subject: [PATCH] use `make lint` to run cilint --- .github/workflows/lint.yml | 15 ++++++--------- core/verkle_witness_test.go | 1 + 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 9fd3d2851a..e9edbb78c5 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -47,12 +47,9 @@ jobs: go mod tidy - 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.62.2 - working-directory: ./ - skip-pkg-cache: true - skip-cache: true - skip-build-cache: true - args: --timeout=99m --config ./.golangci.yml + env: + CGO_CFLAGS: "-O -D__BLST_PORTABLE__" + CGO_CFLAGS_ALLOW: "-O -D__BLST_PORTABLE__" + ANDROID_HOME: "" # Skip android test + run: | + make lint diff --git a/core/verkle_witness_test.go b/core/verkle_witness_test.go index 74660027cd..dd489e561e 100644 --- a/core/verkle_witness_test.go +++ b/core/verkle_witness_test.go @@ -40,6 +40,7 @@ import ( ) var ( + //nolint:unused testVerkleChainConfig = ¶ms.ChainConfig{ ChainID: big.NewInt(1), HomesteadBlock: big.NewInt(0),