mirror of
https://github.com/safing/portbase
synced 2025-09-02 18:50:14 +00:00
Update golangci-lint action
This commit is contained in:
parent
6292da11c6
commit
79ec7e573a
1 changed files with 12 additions and 5 deletions
17
.github/workflows/go.yml
vendored
17
.github/workflows/go.yml
vendored
|
@ -18,6 +18,9 @@ jobs:
|
|||
- name: Check out code into the Go module directory
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Remove go.mod replacements
|
||||
run: sed '/$replace /d' go.mod
|
||||
|
||||
- uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: '^1.15'
|
||||
|
@ -35,11 +38,12 @@ jobs:
|
|||
DEBIAN_FRONTEND: noninteractive
|
||||
|
||||
- name: Run golangci-lint
|
||||
uses: golangci/golangci-lint-action@v1
|
||||
uses: golangci/golangci-lint-action@v2
|
||||
with:
|
||||
version: v1.29
|
||||
only-new-issues: true
|
||||
version: v1.26
|
||||
args: -c ./.golangci.yml
|
||||
skip-go-installation: true
|
||||
|
||||
- name: Get dependencies
|
||||
run: go mod download
|
||||
|
@ -60,10 +64,16 @@ jobs:
|
|||
name: Test
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out code into the Go module directory
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: '^1.15'
|
||||
|
||||
- name: Remove go.mod replacements
|
||||
run: sed '/$replace /d' go.mod
|
||||
|
||||
# nektos/act does not have sudo install but we need it on GH actions so
|
||||
# try to install it.
|
||||
- name: Install sudo
|
||||
|
@ -76,9 +86,6 @@ jobs:
|
|||
env:
|
||||
DEBIAN_FRONTEND: noninteractive
|
||||
|
||||
- name: Check out code into the Go module directory
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Get dependencies
|
||||
run: go mod download
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue