2021-10-02 21:21:44 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: coopcloud.tech/tagcmp
|
|
|
|
steps:
|
2023-04-14 21:30:03 +00:00
|
|
|
- name: gofmt
|
2023-08-09 07:10:31 +00:00
|
|
|
image: golang:1.21
|
2021-10-02 21:21:44 +00:00
|
|
|
commands:
|
2023-04-14 21:28:52 +00:00
|
|
|
- test -z "$(gofmt -l .)"
|
2021-10-02 21:21:44 +00:00
|
|
|
|
2023-04-14 21:30:03 +00:00
|
|
|
- name: go build
|
2023-08-09 07:10:31 +00:00
|
|
|
image: golang:1.21
|
2021-10-02 21:21:44 +00:00
|
|
|
commands:
|
2023-04-14 21:25:05 +00:00
|
|
|
- go build -v .
|
2021-10-02 21:21:44 +00:00
|
|
|
|
2023-04-14 21:30:03 +00:00
|
|
|
- name: go test
|
2023-08-09 07:10:31 +00:00
|
|
|
image: golang:1.21
|
2021-10-02 21:21:44 +00:00
|
|
|
commands:
|
2023-04-14 21:25:05 +00:00
|
|
|
- go test . -cover
|