harness_pipeline_pull_request - robjcook/sync GitHub Wiki
pipeline:
name: PR Validation
identifier: pr_validation_pipeline
projectIdentifier: your_project_id
orgIdentifier: your_org_id
tags: {}
properties:
ci:
codebase:
connectorRef: your_git_connector
repoName: your-repo-name
build:
type: branch
spec:
branch: <+trigger.branch>
stages:
- stage:
name: Validate Pull Request
identifier: validate_pr
type: CI
spec:
infrastructure:
type: KubernetesDirect
spec:
connectorRef: your_k8s_connector
namespace: harness-ci
execution:
steps:
- step:
name: Run Lint & Tests
identifier: run_tests
type: Run
spec:
shell: Bash
command: |
echo "Running tests for PR #<+codebase.prNumber> on branch <+codebase.sourceBranch>"
# Run unit tests or linters
# ./run-tests.sh