From 35fac1bd5792bb0e9ba3a57f7cc52b7af292b283 Mon Sep 17 00:00:00 2001 From: Daniel Carrillo Date: Thu, 26 Jan 2023 20:47:03 +0100 Subject: [PATCH] chore: update linters and go action --- .github/workflows/main.yml | 3 ++- Makefile | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 70f71c3..889f3b8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,9 +18,10 @@ jobs: - uses: actions/checkout@v3 - name: install go - uses: actions/setup-go@v2 + uses: actions/setup-go@v3 with: go-version: "1.19" + cache: true - name: Lint run: make ${{ matrix.make }} diff --git a/Makefile b/Makefile index 712c3fb..42532f7 100644 --- a/Makefile +++ b/Makefile @@ -16,11 +16,11 @@ integration-test: .PHONY: install-tools install-tools: @command golangci-lint > /dev/null 2>&1; if [ $$? -ne 0 ]; then \ - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(GOPATH)/bin v1.45.2; \ + curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(GOPATH)/bin; \ fi @command $(GOPATH)/shadow > /dev/null 2>&1; if [ $$? -ne 0 ]; then \ - go install golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow@v0.1.10; \ + go install golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow@latest; \ fi @command $(GOPATH)/golines > /dev/null 2>&1; if [ $$? -ne 0 ]; then \