Skip to content

Commit 8b5edb1

Browse files
Create pipeline javascript-client
1 parent d47fa4e commit 8b5edb1

1 file changed

Lines changed: 97 additions & 0 deletions

File tree

.harness/ci-cd.yaml

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
pipeline:
2+
name: javascript-client
3+
identifier: javascriptclient
4+
projectIdentifier: Harness_Split
5+
orgIdentifier: PROD
6+
tags: {}
7+
properties:
8+
ci:
9+
codebase:
10+
connectorRef: fmegithubharnessgitops
11+
repoName: javascript-client
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-ts-decls
73+
identifier: npm_run_test_ts_decls
74+
spec:
75+
shell: Sh
76+
command: npm run test-ts-decls
77+
- step:
78+
type: Run
79+
name: npm run test-browser
80+
identifier: npm_run_test_browser
81+
spec:
82+
shell: Sh
83+
command: npm run test-browser
84+
- step:
85+
type: Run
86+
name: npm run test-node
87+
identifier: npm_run_test_node
88+
spec:
89+
shell: Sh
90+
command: npm run test-node
91+
- step:
92+
type: Run
93+
name: npm run build
94+
identifier: npm_run_build
95+
spec:
96+
shell: Sh
97+
command: npm run build

0 commit comments

Comments
 (0)