From a0bb4120d85ed718a1a772a022832af7ddafe3c0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 28 Feb 2022 13:49:11 +1100 Subject: [PATCH] Bump golangci/golangci-lint-action from 2 to 3 (#61) * Bump golangci/golangci-lint-action from 2 to 3 Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 2 to 3. - [Release notes](https://github.com/golangci/golangci-lint-action/releases) - [Commits](https://github.com/golangci/golangci-lint-action/compare/v2...v3) --- updated-dependencies: - dependency-name: golangci/golangci-lint-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] * Run `go get` before `golangci-lint` Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Joshua Spence --- .github/workflows/ci.yaml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index db2ec31..175f57a 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -51,7 +51,16 @@ jobs: runs-on: "ubuntu-latest" steps: - uses: "actions/checkout@v2" - - uses: "golangci/golangci-lint-action@v2" + - uses: "actions/cache@v2" + with: + path: "~/go/pkg/mod" + key: "${{ runner.os }}-gomod-${{ hashFiles('**/go.sum') }}" + + - uses: "actions/setup-go@v2" + with: + go-version: "${{ env.GO_VERSION }}" + - run: "go get ./..." + - uses: "golangci/golangci-lint-action@v3" test: needs: "build"