workflow: Use latest golangci-lint workflow action
This commit is contained in:
parent
9827126d30
commit
29fb97f3d6
1 changed files with 6 additions and 7 deletions
13
.github/workflows/tests.yml
vendored
13
.github/workflows/tests.yml
vendored
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue