From e570d613d71ad62996555cbe9941dfdc89420211 Mon Sep 17 00:00:00 2001 From: Maria Ines Parnisari Date: Thu, 30 Nov 2023 08:20:47 -0800 Subject: [PATCH] use golangci-lint-action --- .github/workflows/on-pull-request.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/on-pull-request.yml b/.github/workflows/on-pull-request.yml index 746490ee..eb647ffa 100644 --- a/.github/workflows/on-pull-request.yml +++ b/.github/workflows/on-pull-request.yml @@ -4,6 +4,9 @@ on: pull_request: branches: [ master, main ] +env: + GOLANGCI_LINT_VERSION: v1.54.2 + jobs: test: name: test @@ -42,8 +45,11 @@ jobs: - name: Install deps run: go mod download - - name: Lint - run: make lint + - name: golangci-lint + uses: golangci/golangci-lint-action@v3 + with: + version: ${{ env.GOLANGCI_LINT_VERSION }} + skip-cache: true - name: Test run: go test -v -race -p=1 -count=1