Skip to content

Commit b5fce40

Browse files
committed
add workflow and test
1 parent 60a15c3 commit b5fce40

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/commit.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ jobs:
2020
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
2121
restore-keys: |
2222
${{ runner.os }}-node-
23-
- run: cd backend
2423
- run: npm install
24+
working-directory: backend
2525
- run: npm run build
26+
working-directory: backend
2627

2728
test:
2829
needs: build
@@ -38,6 +39,7 @@ jobs:
3839
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
3940
restore-keys: |
4041
${{ runner.os }}-node-
41-
- run: cd backend
4242
- run: npm install
43+
working-directory: backend
4344
- run: npm run test
45+
working-directory: backend

0 commit comments

Comments
 (0)