-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (39 loc) · 1017 Bytes
/
fe-ci-dev.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: FE CI for dev
on:
pull_request:
branches:
- develop
paths:
- "frontend/**"
jobs:
build-and-test:
timeout-minutes: 4
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./frontend
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
cache-dependency-path: frontend/package-lock.json
- name: Install Dependencies
run: npm install
working-directory: ./frontend
- name: Cache node_modules
id: cache
uses: actions/cache@v3
with:
path: "**/node_modules"
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Build
run: npm run build-dev
working-directory: ./frontend
- name: Test
run: npm test
working-directory: ./frontend