Skip to content

Commit 848a693

Browse files
feat: add test and build pipelines
Ref #42454
1 parent 40f4fae commit 848a693

File tree

2 files changed

+64
-0
lines changed

2 files changed

+64
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Front-end 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+
- name: Build Front End
32+
run: npm run build
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Front-end 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+
- name: Run unit tests
32+
run: npm run test

0 commit comments

Comments
 (0)