From 14c2a244b79889f4e9d4bd107e8f69fdd3f9845a Mon Sep 17 00:00:00 2001 From: Nicola Murino Date: Thu, 30 Apr 2020 17:57:06 +0200 Subject: [PATCH] code quality check: use setup-go@v2 and go 1.14 --- .github/workflows/quality.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/quality.yml b/.github/workflows/quality.yml index 96382ae2..c14eafb3 100644 --- a/.github/workflows/quality.yml +++ b/.github/workflows/quality.yml @@ -12,21 +12,17 @@ jobs: runs-on: ubuntu-latest steps: - - name: Set up Go 1.13 - uses: actions/setup-go@v1 + - name: Set up Go 1.14 + uses: actions/setup-go@v2 with: - go-version: 1.13 + go-version: 1.14.x id: go - name: Check out code into the Go module directory uses: actions/checkout@v2 - - name: Add GOPATH to PATH - run: echo "::add-path::$(go env GOPATH)/bin" - shell: bash - - name: Install golangci-lint run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.25.1 - name: Run golangci-lint - run: golangci-lint run --timeout=2m --tests=false --enable=goconst,gofmt,goimports,golint,unconvert,unparam,bodyclose,gocyclo,misspell,maligned,whitespace,dupl,scopelint + run: golangci-lint run --timeout=3m --tests=false --enable=goconst,gofmt,goimports,golint,unconvert,unparam,bodyclose,gocyclo,misspell,maligned,whitespace,dupl,scopelint