From eef7ae96c20a26f16b26f178c07ebe7df11511ab Mon Sep 17 00:00:00 2001 From: Ankit Pokhrel Date: Sat, 18 Mar 2023 11:46:22 +0100 Subject: [PATCH] ci: Upgrade actions and linter (#590) --- .github/workflows/ci.yml | 6 +++--- Makefile | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4ad2d5dc..38ca1e0f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,12 +13,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Setup Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: - go-version: '^1.19.4' + go-version: '^1.20.2' - name: Install dependencies run: make deps diff --git a/Makefile b/Makefile index c3897dfb..a89d3720 100644 --- a/Makefile +++ b/Makefile @@ -44,12 +44,12 @@ install: lint: @if ! command -v golangci-lint > /dev/null 2>&1; then \ curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | \ - sh -s -- -b "$$(go env GOPATH)/bin" v1.50.1 ; \ + sh -s -- -b "$$(go env GOPATH)/bin" v1.51.2 ; \ fi golangci-lint run ./... test: - @go clean -testcache ./... + @go clean -testcache CGO_ENABLED=1 go test -race ./... ci: lint test