Skip to content

Commit c99db49

Browse files
committed
ci: Update test workflow to execute web-app npm commands and locate coverage within its directory.
1 parent 93b2480 commit c99db49

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,21 @@ jobs:
5050
with:
5151
node-version: '18'
5252
cache: 'npm'
53+
cache-dependency-path: web-app/package-lock.json
5354

5455
- name: Install dependencies
55-
run: npm ci
56+
run: |
57+
cd web-app
58+
npm ci
5659
5760
- name: Run tests with coverage
58-
run: npm run test:coverage
61+
run: |
62+
cd web-app
63+
npm run test:coverage
5964
6065
- name: Upload coverage to Codecov
6166
uses: codecov/codecov-action@v3
6267
with:
63-
file: ./coverage/lcov.info
68+
file: ./web-app/coverage/lcov.info
6469
flags: javascript
6570
name: javascript-coverage

0 commit comments

Comments
 (0)