diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8a856b25c..57f4d23e6 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -101,9 +101,8 @@ jobs: lint: name: "⌨ Lint" - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - - name: Set up Go 1.16 uses: actions/setup-go@v3 with: @@ -115,10 +114,7 @@ jobs: with: ref: ${{ github.event.pull_request.head.sha }} - - name: Install golangci-lint - run: curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(go env GOPATH)/bin v1.30.0 - - # This is needed to lint internal/upload/koji package + # This is needed to lint internal/upload/koji package - name: Install kerberos devel package run: sudo apt-get install -y libkrb5-dev @@ -127,7 +123,10 @@ jobs: run: sudo apt-get install -y libgpgme-dev - name: Run golangci-lint - run: $(go env GOPATH)/bin/golangci-lint run --timeout 5m0s + uses: golangci/golangci-lint-action@v3 + with: + version: latest + args: --verbose --timeout 5m0s prepare: name: "🔍 Check source preparation"