Skip to content

Commit 2bb045d

Browse files
committed
Set working directory for install and test steps
Updated the GitHub Actions workflow to specify the MyProject directory for npm install and test steps. Also set cache-dependency-path to MyProject/package-lock.json to ensure correct dependency caching.
1 parent edeae83 commit 2bb045d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,12 @@ jobs:
1616
with:
1717
node-version: "20"
1818
cache: "npm"
19+
cache-dependency-path: MyProject/package-lock.json
1920

2021
- name: Install
22+
working-directory: MyProject
2123
run: npm ci
2224

2325
- name: Run tests
26+
working-directory: MyProject
2427
run: npm test

0 commit comments

Comments
 (0)