From 6f341fc0f78ae51b2e37607bedfd5000a76d5a53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D1=83=D0=B4=D1=80=D1=8B=D1=85=20=D0=90=D1=80=D1=82?= =?UTF-8?q?=D1=83=D1=80=20=D0=92=D0=B8=D0=BA=D1=82=D0=BE=D1=80=D0=BE=D0=B2?= =?UTF-8?q?=D0=B8=D1=87=20=284047650=29?= Date: Mon, 22 Aug 2022 12:59:13 +0300 Subject: [PATCH] https://github.com/golangci/golangci-lint-action/issues/442 --- .github/workflows/golangci-lint.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 0410ec21..93372276 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -20,12 +20,13 @@ jobs: name: lint runs-on: ubuntu-latest steps: + - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: 1.18 - - uses: actions/checkout@v3 + go-version-file: go.mod + cache: true + cache-dependency-path: go.sum - 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.29 \ No newline at end of file + run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.47.3 + - name: Run golangci-lint + run: golangci-lint run --version --verbose --out-format=github-actions \ No newline at end of file