diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 9c1647c8c6..20c8dfc3ff 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -17,9 +17,6 @@ defaults: run: shell: bash -env: - GOLANGCI_TIMEOUT: 10m0s - concurrency: group: ${{ github.ref_name }}-lint cancel-in-progress: true @@ -32,8 +29,14 @@ jobs: steps: - name: Checkout Repository uses: actions/checkout@v2 + - name: Output Variables + id: vars + run: echo "::set-output name=go_version::$(grep "go 1." go.mod | cut -d " " -f 2)" + - name: Setup Golang Environment + uses: actions/setup-go@v2 + with: + go-version: ${{ steps.vars.outputs.go_version }} - name: Lint Code - uses: golangci/golangci-lint-action@v2 + uses: golangci/golangci-lint-action@v3 with: - args: --timeout ${{ env.GOLANGCI_TIMEOUT }} only-new-issues: true