Skip to content

Commit 3eb2a3a

Browse files
Adding executable step to testing stage.
1 parent 7a862dd commit 3eb2a3a

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
@@ -50,6 +50,28 @@ pipeline:
5050
image: golang:1.20
5151
shell: Sh
5252
command: go test -cover ./...
53+
- step:
54+
name: Build and test binaries
55+
identifier: Build_test_binaries
56+
type: Run
57+
spec:
58+
connectorRef: Plugins_Docker_Hub_Connector
59+
image: golang:1.20
60+
shell: Sh
61+
command: |-
62+
# force go modules
63+
export GOPATH=""
64+
65+
# disable cgo
66+
export CGO_ENABLED=0
67+
68+
set -e
69+
set -x
70+
71+
# linux
72+
export GOOS=linux GOARCH=amd64
73+
go build -v -ldflags "-X main.version=" -a -tags netgo -o release/linux/amd64/drone-github-release ./cmd/drone-github-release
74+
./release/linux/amd64/drone-github-release --help
5375
description: ""
5476
- parallel:
5577
- stage:

0 commit comments

Comments
 (0)