Skip to content

Commit dc41f1f

Browse files
committed
Update backend-ci.yml
1 parent b7acba5 commit dc41f1f

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

.github/workflows/backend-ci.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,18 @@ name: Backend CI
22

33
on:
44
push:
5-
branches: [ "main", "QUY-TRÌNH-1", "QUY-TRÌNH-2", "QUY-TRÌNH-3", "QUY-TRÌNH-4", "SOURCE" ]
5+
branches: [ "main", "QUY-TRINH-1", "QUY-TRINH-2", "QUY-TRINH-3", "QUY-TRINH-4", "SOURCE" ]
66
paths:
7-
- 'Backend/**'
7+
- 'backend/**'
88
- '.github/workflows/backend-ci.yml'
99
pull_request:
10-
branches: [ "main", "QUY-TRÌNH-1", "QUY-TRÌNH-2", "QUY-TRÌNH-3", "QUY-TRÌNH-4", "SOURCE" ]
10+
branches: [ "main", "QUY-TRINH-1", "QUY-TRINH-2", "QUY-TRINH-3", "QUY-TRINH-4", "SOURCE" ]
1111
paths:
12-
- 'Backend/**'
12+
- 'backend/**'
1313
- '.github/workflows/backend-ci.yml'
1414

1515
jobs:
16+
1617
build:
1718
runs-on: ubuntu-latest
1819
strategy:
@@ -26,11 +27,16 @@ jobs:
2627
with:
2728
node-version: ${{ matrix.node-version }}
2829
cache: 'npm'
30+
cache-dependency-path: 'backend/package-lock.json'
2931
- name: Install dependencies
32+
working-directory: ./backend
3033
run: npm ci
31-
- name: Code Quality - Lint
34+
- name: Code Quality - Lint # kiểm tra chất lượng mã nguồn
35+
working-directory: ./backend
3236
run: npm run lint
3337
- name: Build
38+
working-directory: ./backend
3439
run: npm run build --if-present
3540
- name: Run tests
41+
working-directory: ./backend
3642
run: npm test

0 commit comments

Comments
 (0)