Skip to content

testTrigger #24

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
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_ebtasamfaridy_testgo_1733820872216-pr-trigger-input-set
identifier: Build_ebtasamfaridy_testgo_1733820872216prtriggerinputset
orgIdentifier: default
projectIdentifier: default_project
pipeline:
identifier: Build_ebtasamfaridy_testgo_1733820872216
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_ebtasamfaridy_testgo_1733820872216-push-trigger-input-set
identifier: Build_ebtasamfaridy_testgo_1733820872216pushtriggerinputset
orgIdentifier: default
projectIdentifier: default_project
pipeline:
identifier: Build_ebtasamfaridy_testgo_1733820872216
properties:
ci:
codebase:
build:
type: branch
spec:
branch: <+trigger.branch>
65 changes: 65 additions & 0 deletions .harness/pipelines/testgo-1733820866157.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
pipeline:
identifier: Build_ebtasamfaridy_testgo_1733820872216
name: Build testgo
orgIdentifier: default
projectIdentifier: default_project
properties:
ci:
codebase:
build: <+input>
connectorRef: account.Github_OAuth_1733820835706
repoName: ebtasamfaridy/testgo
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
- step:
identifier: dockerbuild
name: docker_build
spec:
caching: true
connectorRef: <+input>
repo: hello/world
tags:
- latest
timeout: ""
type: BuildAndPushDockerRegistry
platform:
arch: Amd64
os: Linux
runtime:
spec: {}
type: Cloud
type: CI
1 change: 1 addition & 0 deletions temp
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
this is a temp file