Skip to content

Commit 3102118

Browse files
Adding executable step to testing stage.
1 parent 9e0a4e7 commit 3102118

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.harness/harness.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,28 @@ pipeline:
3838
image: golang:1.21
3939
shell: Sh
4040
command: go test -cover ./...
41+
- step:
42+
name: Build and test binaries
43+
identifier: Build_test_binaries
44+
type: Run
45+
spec:
46+
connectorRef: Plugins_Docker_Hub_Connector
47+
image: golang:1.21
48+
shell: Sh
49+
command: |-
50+
# force go modules
51+
export GOPATH=""
52+
53+
# disable cgo
54+
export CGO_ENABLED=0
55+
56+
set -e
57+
set -x
58+
59+
# linux
60+
export GOOS=linux GOARCH=amd64
61+
go build -v -a -tags netgo -o release/linux/amd64/drone-github-release-download ./cmd/drone-github-release-download
62+
./release/linux/amd64/drone-github-release-download --help
4163
description: ""
4264
- parallel:
4365
- stage:

0 commit comments

Comments
 (0)