From 693aa7b8495aaa2fb61df5277ec2ac11a7504a19 Mon Sep 17 00:00:00 2001 From: Djordje Lukic Date: Thu, 14 May 2020 22:13:35 +0200 Subject: [PATCH] Remove golangci-lint action, use executable The github action we were using had to be rebuilt on each build, we now start from base go 1.14 and just download the golangci-tool and run it. This saves around 20-30 seconds on each build. --- .github/workflows/ci.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 680a423b8..f55b14c39 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,15 +6,23 @@ jobs: lint: name: Lint runs-on: ubuntu-latest + env: + GO111MODULE: "on" steps: + - name: Set up Go 1.14 + uses: actions/setup-go@v1 + with: + go-version: 1.14 + id: go + - name: Checkout code into the Go module directory uses: actions/checkout@v2 - name: Run golangci-lint - env: - GO111MODULE: "on" - GOROOT: "" - uses: actions-contrib/golangci-lint@v1 + run: | + curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b . v1.27.0 + ./golangci-lint run + build: name: Build runs-on: ubuntu-latest