Skip to content

Commit 9c4c173

Browse files
authored
Create frontend-ci.yml
1 parent b2e41e6 commit 9c4c173

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/frontend-ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Frontend CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
paths:
7+
- 'client/**'
8+
pull_request:
9+
branches: [ main ]
10+
paths:
11+
- 'client/**'
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
defaults:
17+
run:
18+
working-directory: ./client
19+
20+
steps:
21+
- uses: actions/checkout@v2
22+
- name: Set up Node.js
23+
uses: actions/setup-node@v2
24+
with:
25+
node-version: '>=18'
26+
- name: Install dependencies
27+
run: npm ci
28+
- name: Run tests
29+
run: npm test
30+
- name: Build
31+
run: npm run build

0 commit comments

Comments
 (0)