Skip to content

Commit bc367c9

Browse files
committed
ci: woodpecker pipeline (Go) — golangci-lint/eslint/phpstan + sonar.lthn.sh
1 parent ecf75b8 commit bc367c9

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

.woodpecker.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,20 @@ steps:
1515
GOWORK: "off"
1616
commands:
1717
- golangci-lint run --timeout=5m ./...
18+
19+
- name: go-test
20+
image: golang:1.26-alpine
21+
depends_on: []
22+
environment:
23+
GOFLAGS: -buildvcs=false
24+
GOWORK: "off"
25+
CGO_ENABLED: "1"
26+
commands:
27+
- apk add --no-cache git build-base
28+
- go test -race -coverprofile=coverage.out -covermode=atomic -count=1 ./...
1829
- name: sonar
1930
image: sonarsource/sonar-scanner-cli:latest
20-
depends_on: []
31+
depends_on: [go-test]
2132
environment:
2233
SONAR_HOST_URL: https://sonar.lthn.sh
2334
SONAR_TOKEN:

0 commit comments

Comments
 (0)