workflow: Use latest golangci-lint workflow action

This commit is contained in:
Brian C. Lane 2022-09-08 10:15:41 -07:00 committed by Brian C. Lane
parent 9827126d30
commit 29fb97f3d6

View file

@ -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"