mirror of
https://github.com/libp2p/go-libp2p.git
synced 2025-09-27 04:26:41 +08:00
wip: testing uci golangci-lint support
This commit is contained in:
41
.github/workflows/go-check.yml
vendored
41
.github/workflows/go-check.yml
vendored
@@ -15,46 +15,7 @@ concurrency:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
go-check:
|
go-check:
|
||||||
uses: ipdxco/unified-github-workflows/.github/workflows/go-check.yml@v1.0
|
uses: ipdxco/unified-github-workflows/.github/workflows/go-check.yml@golangci-lint
|
||||||
with:
|
with:
|
||||||
go-version: "1.24.x"
|
go-version: "1.24.x"
|
||||||
go-generate-ignore-protoc-version-comments: true
|
go-generate-ignore-protoc-version-comments: true
|
||||||
|
|
||||||
golangci-lint:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
go: [ "1.23.x", "1.24.x" ]
|
|
||||||
env:
|
|
||||||
GOLANGCI_LINT_VERSION: v2.1.0
|
|
||||||
name: golangci-lint (Go ${{ matrix.go }})
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- uses: actions/setup-go@v5
|
|
||||||
with:
|
|
||||||
go-version: ${{ matrix.go }}
|
|
||||||
- name: golangci-lint (Linux)
|
|
||||||
uses: golangci/golangci-lint-action@v8
|
|
||||||
with:
|
|
||||||
args: --timeout=5m
|
|
||||||
version: ${{ env.GOLANGCI_LINT_VERSION }}
|
|
||||||
only-new-issues: true
|
|
||||||
- name: golangci-lint (Windows)
|
|
||||||
if: success() || failure() # run this step even if the previous one failed
|
|
||||||
uses: golangci/golangci-lint-action@v8
|
|
||||||
env:
|
|
||||||
GOOS: "windows"
|
|
||||||
with:
|
|
||||||
args: --timeout=5m
|
|
||||||
version: ${{ env.GOLANGCI_LINT_VERSION }}
|
|
||||||
only-new-issues: true
|
|
||||||
- name: golangci-lint (OSX)
|
|
||||||
if: success() || failure() # run this step even if the previous one failed
|
|
||||||
uses: golangci/golangci-lint-action@v8
|
|
||||||
env:
|
|
||||||
GOOS: "darwin"
|
|
||||||
with:
|
|
||||||
args: --timeout=5m
|
|
||||||
version: ${{ env.GOLANGCI_LINT_VERSION }}
|
|
||||||
only-new-issues: true
|
|
||||||
|
Reference in New Issue
Block a user