Skip to content

Commit e127ca2

Browse files
Merge pull request #48 from cloudera/feature/DSE-42454-Create-build-and-test-pipeline-for-SDS-using-Github-Actions
feat: add test and build pipelines
2 parents 40f4fae + 19c10bb commit e127ca2

File tree

7 files changed

+6681
-3
lines changed

7 files changed

+6681
-3
lines changed

.github/workflows/client-build.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Client Build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
15+
defaults:
16+
run:
17+
working-directory: ./app/client
18+
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@v2
22+
23+
- name: Set up Node.js
24+
uses: actions/setup-node@v2
25+
with:
26+
node-version: 22
27+
28+
- name: Install dependencies
29+
run: npm install
30+
31+
# Rollup is needed for CI build since its ubuntu and we are developing mostly on mac
32+
- name: Install Rollup
33+
run: npm i --save-dev @rollup/rollup-linux-x64-gnu
34+
35+
- name: Build Front End
36+
run: npm run build
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Client Unit Test
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
15+
defaults:
16+
run:
17+
working-directory: ./app/client
18+
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@v2
22+
23+
- name: Set up Node.js
24+
uses: actions/setup-node@v2
25+
with:
26+
node-version: 22
27+
28+
- name: Install dependencies
29+
run: npm install
30+
31+
# Rollup is needed for CI build since its ubuntu and we are developing mostly on mac
32+
- name: Install Rollup
33+
run: npm i --save-dev @rollup/rollup-linux-x64-gnu
34+
35+
- name: Run unit tests
36+
run: npm run test

0 commit comments

Comments
 (0)