Skip to content

Commit c44fc8c

Browse files
Replace GH with Harness CI pipeline
1 parent 32f81c7 commit c44fc8c

File tree

4 files changed

+98
-86
lines changed

4 files changed

+98
-86
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

.github/workflows/update-notice-year.yml

Lines changed: 0 additions & 45 deletions
This file was deleted.

.harness/ci.yaml

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
pipeline:
2+
name: javascript-commons
3+
identifier: javascriptcommons
4+
projectIdentifier: Harness_Split
5+
orgIdentifier: PROD
6+
tags: {}
7+
properties:
8+
ci:
9+
codebase:
10+
connectorRef: fmegithubharnessgitops
11+
repoName: javascript-commons
12+
build: <+input>
13+
stages:
14+
- stage:
15+
name: Check-Test-Build
16+
identifier: Checkout_code
17+
description: ""
18+
type: CI
19+
spec:
20+
cloneCodebase: true
21+
caching:
22+
enabled: true
23+
override: true
24+
paths: []
25+
platform:
26+
os: Linux
27+
arch: Amd64
28+
runtime:
29+
type: Cloud
30+
spec:
31+
size: small
32+
imageSpec:
33+
imageName: ubuntu-latest
34+
buildIntelligence:
35+
enabled: false
36+
execution:
37+
steps:
38+
- step:
39+
type: Run
40+
name: redis-server
41+
identifier: redis_server
42+
spec:
43+
shell: Sh
44+
command: |-
45+
apt-get update && apt-get install -y redis-server
46+
redis-server --daemonize yes
47+
- step:
48+
type: Action
49+
name: Set up Nodejs
50+
identifier: Set_up_Nodejs
51+
spec:
52+
uses: actions/setup-node@v4
53+
with:
54+
node-version: "20"
55+
cache: npm
56+
- step:
57+
type: Run
58+
name: npm ci
59+
identifier: npm_ci
60+
spec:
61+
shell: Sh
62+
command: npm ci
63+
- step:
64+
type: Run
65+
name: npm run check
66+
identifier: npm_run_check
67+
spec:
68+
shell: Sh
69+
command: npm run check
70+
- step:
71+
type: Run
72+
name: npm run test
73+
identifier: npm_run_test
74+
spec:
75+
shell: Sh
76+
command: npm run test
77+
- step:
78+
type: Run
79+
name: npm run build
80+
identifier: npm_run_build
81+
spec:
82+
shell: Sh
83+
command: npm run build

.harness/input-set.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
inputSet:
2+
name: javascript-commons
3+
tags: {}
4+
identifier: javascriptcommons
5+
orgIdentifier: PROD
6+
projectIdentifier: Harness_Split
7+
pipeline:
8+
identifier: javascriptcommons
9+
properties:
10+
ci:
11+
codebase:
12+
build:
13+
type: branch
14+
spec:
15+
branch: <+trigger.branch>

0 commit comments

Comments
 (0)