We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecf75b8 commit bc367c9Copy full SHA for bc367c9
1 file changed
.woodpecker.yml
@@ -15,9 +15,20 @@ steps:
15
GOWORK: "off"
16
commands:
17
- 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 ./...
29
- name: sonar
30
image: sonarsource/sonar-scanner-cli:latest
- depends_on: []
31
+ depends_on: [go-test]
32
environment:
33
SONAR_HOST_URL: https://sonar.lthn.sh
34
SONAR_TOKEN:
0 commit comments