Skip to content

Commit 8bbac89

Browse files
authored
Update node.js.yml
1 parent d47c4a3 commit 8bbac89

1 file changed

Lines changed: 12 additions & 20 deletions

File tree

.github/workflows/node.js.yml

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ jobs:
1414
test-api-linux:
1515
name: API Test (Linux)
1616
runs-on: ubuntu-latest
17-
defaults:
18-
run:
19-
working-directory: api
2017

2118
strategy:
2219
matrix:
@@ -30,17 +27,15 @@ jobs:
3027
with:
3128
node-version: ${{ matrix.node-version }}
3229
cache: 'npm'
33-
cache-dependency-path: |
34-
api/package-lock.json
30+
cache-dependency-path: api/package-lock.json
3531
- run: npm ci
32+
working-directory: api
3633
- run: npm test
34+
working-directory: api
3735

3836
test-frontend-linux:
3937
name: Frontend Test (Linux)
4038
runs-on: ubuntu-latest
41-
defaults:
42-
run:
43-
working-directory: frontend
4439

4540
strategy:
4641
matrix:
@@ -54,17 +49,15 @@ jobs:
5449
with:
5550
node-version: ${{ matrix.node-version }}
5651
cache: 'npm'
57-
cache-dependency-path: |
58-
frontend/package-lock.json
52+
cache-dependency-path: frontend/package-lock.json
5953
- run: npm ci
54+
working-directory: frontend
6055
- run: npm test
56+
working-directory: frontend
6157

6258
test-api-windows:
6359
name: API Test (Windows)
6460
runs-on: windows-latest
65-
defaults:
66-
run:
67-
working-directory: api
6861

6962
strategy:
7063
matrix:
@@ -78,17 +71,15 @@ jobs:
7871
with:
7972
node-version: ${{ matrix.node-version }}
8073
cache: 'npm'
81-
cache-dependency-path: |
82-
api/package-lock.json
74+
cache-dependency-path: api/package-lock.json
8375
- run: npm ci
76+
working-directory: api
8477
- run: npm test
78+
working-directory: api
8579

8680
test-frontend-windows:
8781
name: Frontend Test (Windows)
8882
runs-on: windows-latest
89-
defaults:
90-
run:
91-
working-directory: frontend
9283

9384
strategy:
9485
matrix:
@@ -102,7 +93,8 @@ jobs:
10293
with:
10394
node-version: ${{ matrix.node-version }}
10495
cache: 'npm'
105-
cache-dependency-path: |
106-
frontend/package-lock.json
96+
cache-dependency-path: frontend/package-lock.json
10797
- run: npm ci
98+
working-directory: frontend
10899
- run: npm test
100+
working-directory: frontend

0 commit comments

Comments
 (0)