Skip to content

Commit 8789c60

Browse files
committed
[ignore] add simple CI
1 parent 321cf7b commit 8789c60

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.woodpecker.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
when:
2+
event:
3+
- push
4+
- manual
5+
- cron
6+
7+
variables:
8+
- &go_image "golang:1.22-alpine"
9+
10+
steps:
11+
lint:
12+
image: *go_image
13+
when:
14+
event: [push, manual, cron]
15+
commands:
16+
- go vet ./...
17+
18+
build:
19+
image: *go_image
20+
when:
21+
event: [push, manual, cron]
22+
commands:
23+
- go build ./...
24+
25+
test:
26+
image: *go_image
27+
when:
28+
event: [push, manual, cron]
29+
commands:
30+
- go test ./... -timeout 120s
31+
32+
labels:
33+
platform: linux/amd64

0 commit comments

Comments
 (0)