Skip to content

Commit 85b5591

Browse files
committed
Set correct working directory in tests
Update node.js.yml Update node.js.yml Update node.js.yml
1 parent 67942c9 commit 85b5591

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/node.js.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,9 @@ jobs:
1313
build:
1414

1515
runs-on: ubuntu-latest
16-
1716
strategy:
1817
matrix:
19-
node-version: [14.x, 16.x, 18.x]
18+
node-version: [18.x]
2019
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
2120

2221
steps:
@@ -25,7 +24,14 @@ jobs:
2524
uses: actions/setup-node@v3
2625
with:
2726
node-version: ${{ matrix.node-version }}
27+
cache-dependency-path: react-app/package-lock.json
2828
cache: 'npm'
29-
- run: npm ci
30-
- run: npm run build --if-present
31-
- run: npm test
29+
- name: CI
30+
working-directory: react-app
31+
run: npm ci
32+
- name: build
33+
working-directory: react-app
34+
run: npm run build --if-present
35+
- name: test
36+
working-directory: react-app
37+
run: npm test

0 commit comments

Comments
 (0)