Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
inputSet:
name: Build_gosample_1698733703397-pr-trigger-input-set
identifier: Build_gosample_1698733703397prtriggerinputset
orgIdentifier: default
projectIdentifier: default_project
pipeline:
identifier: Build_gosample_1698733703397
properties:
ci:
codebase:
build:
type: PR
spec:
number: <+trigger.prNumber>
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
inputSet:
name: Build_gosample_1698733703397-push-trigger-input-set
identifier: Build_gosample_1698733703397pushtriggerinputset
orgIdentifier: default
projectIdentifier: default_project
pipeline:
identifier: Build_gosample_1698733703397
properties:
ci:
codebase:
build:
type: branch
spec:
branch: <+trigger.branch>
49 changes: 49 additions & 0 deletions .harness/pipelines/gosample-1698733680738.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
pipeline:
identifier: Build_gosample_1698733703397
name: Build gosample
orgIdentifier: default
projectIdentifier: default_project
properties:
ci:
codebase:
build: <+input>
connectorRef: account.Github_OAuth_1698733671125
repoName: gosample
stages:
- stage:
identifier: build
name: build
spec:
cloneCodebase: true
execution:
steps:
- step:
identifier: gobuild
name: go_build
spec:
command: go build
timeout: ""
type: Run
- step:
identifier: gotest
name: go_test
spec:
command: go test -v ./...
timeout: ""
type: Run
- step:
type: Run
identifier: build_go_app
name: Build Go App
spec:
command: |-
echo "Welcome to Harness CI"
go build
go test
platform:
arch: Amd64
os: Linux
runtime:
spec: {}
type: Cloud
type: CI