From ba11560b75eb9ca170aa6c4cf8c385b286eafcbb Mon Sep 17 00:00:00 2001 From: "dave.johnston@harness.io" Date: Tue, 18 Jun 2024 11:27:05 +0100 Subject: [PATCH] Added pipeline .harness/pipelines/ff-golang-server-sdk-1718706413193.yaml --- .../ff-golang-server-sdk-1718706413193.yaml | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 .harness/pipelines/ff-golang-server-sdk-1718706413193.yaml diff --git a/.harness/pipelines/ff-golang-server-sdk-1718706413193.yaml b/.harness/pipelines/ff-golang-server-sdk-1718706413193.yaml new file mode 100644 index 0000000..b15d39c --- /dev/null +++ b/.harness/pipelines/ff-golang-server-sdk-1718706413193.yaml @@ -0,0 +1,54 @@ +pipeline: + identifier: Build_ff_golang_server_sdk_1718706424778 + name: Build ff-golang-server-sdk + orgIdentifier: default + projectIdentifier: DavesProject + properties: + ci: + codebase: + build: <+input> + connectorRef: account.ffgitsync + repoName: ff-golang-server-sdk + stages: + - stage: + identifier: build + name: build + spec: + caching: + enabled: true + cloneCodebase: true + execution: + steps: + - step: + identifier: gobuild + name: go_build + spec: + command: go build + timeout: "" + type: Run + - step: + identifier: gotestcoverage + name: go_test_coverage + spec: + command: go test -coverprofile=coverage.out ./... + timeout: "" + type: Run + - step: + identifier: gotestreport + name: go_test_report + spec: + command: "export GOBIN=/home/harness/go/bin\n\t\texport PATH=/home/harness/go/bin:$PATH\n\t\techo $PATH\n\t\tgo install github.com/jstemmer/go-junit-report/v2@latest\n\t\tgo test -v 2>&1 ./... | go-junit-report -set-exit-code > report.xml" + reports: + spec: + paths: + - /harness/report.xml + type: JUnit + timeout: "" + type: Run + platform: + arch: Amd64 + os: Linux + runtime: + spec: {} + type: Cloud + type: CI