Run linter once
This commit is contained in:
@@ -6,18 +6,14 @@ matrix:
|
|||||||
labels:
|
labels:
|
||||||
platform: ${platform}
|
platform: ${platform}
|
||||||
|
|
||||||
|
depends_on:
|
||||||
|
- lint
|
||||||
|
|
||||||
when:
|
when:
|
||||||
branch: master
|
branch: master
|
||||||
event: [push, pull_request, tag]
|
event: [push, pull_request, tag]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
lint:
|
|
||||||
image: golangci/golangci-lint:v2.12
|
|
||||||
commands:
|
|
||||||
- golangci-lint run --timeout 5m
|
|
||||||
when:
|
|
||||||
event: [push, pull_request, tag]
|
|
||||||
|
|
||||||
test-build:
|
test-build:
|
||||||
image: docker:27-dind
|
image: docker:27-dind
|
||||||
commands:
|
commands:
|
||||||
|
|||||||
11
.woodpecker/lint.yaml
Normal file
11
.woodpecker/lint.yaml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
when:
|
||||||
|
branch: master
|
||||||
|
event: [push, pull_request, tag]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
lint:
|
||||||
|
image: golangci/golangci-lint:v2.12
|
||||||
|
commands:
|
||||||
|
- golangci-lint run --timeout 5m
|
||||||
|
when:
|
||||||
|
event: [push, pull_request, tag]
|
||||||
Reference in New Issue
Block a user