Fixed lsof in woodpecker testing
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
96e64d0c37
commit
e915ebdf34
@ -1,15 +1,24 @@
|
|||||||
pipeline:
|
pipeline:
|
||||||
build:
|
build_test:
|
||||||
|
image: golang:1.16
|
||||||
|
commands:
|
||||||
|
- go build
|
||||||
|
|
||||||
|
test:
|
||||||
|
image: golang:1.16
|
||||||
|
commands:
|
||||||
|
- apt update
|
||||||
|
- apt install -f lsof
|
||||||
|
- go test -v ./...
|
||||||
|
|
||||||
|
build_release:
|
||||||
image: golang:1.16
|
image: golang:1.16
|
||||||
commands:
|
commands:
|
||||||
- go mod vendor
|
- go mod vendor
|
||||||
- GOOS=linux GOARCH=amd64 go build -o "dist/adept-linux-amd64-${CI_COMMIT_TAG}"
|
- GOOS=linux GOARCH=amd64 go build -o "dist/adept-linux-amd64-${CI_COMMIT_TAG}"
|
||||||
- GOOS=windows GOARCH=amd64 go build -o "dist/adept-windows-amd64-${CI_COMMIT_TAG}.exe"
|
- GOOS=windows GOARCH=amd64 go build -o "dist/adept-windows-amd64-${CI_COMMIT_TAG}.exe"
|
||||||
|
when:
|
||||||
test:
|
event: tag
|
||||||
image: golang:1.16
|
|
||||||
commands:
|
|
||||||
- go test -v ./...
|
|
||||||
|
|
||||||
gitea_release:
|
gitea_release:
|
||||||
image: plugins/gitea-release
|
image: plugins/gitea-release
|
||||||
|
Loading…
Reference in New Issue
Block a user