Skip to content

Commit f8c521c

Browse files
committed
feat: CI Path Fix: Created web-app-tests.yml to run tests in the web-app directory.
Lock File: Configured it to use web-app/package-lock.json. Git Ignore: Removed package-lock.json from .gitignore so it can be committed. Node Version: Set to v22.
1 parent 27c9a6c commit f8c521c

File tree

3 files changed

+4804
-1
lines changed

3 files changed

+4804
-1
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Web App Tests
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
web-app-tests:
11+
runs-on: ubuntu-latest
12+
name: Web App Tests
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v4
17+
18+
- name: Set up Node.js
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: '22'
22+
cache: 'npm'
23+
cache-dependency-path: web-app/package-lock.json
24+
25+
- name: Install dependencies
26+
run: |
27+
cd web-app
28+
npm ci
29+
30+
- name: Run tests with coverage
31+
run: |
32+
cd web-app
33+
npm run test:coverage

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ dmypy.json
102102

103103
#node
104104
node_modules/
105-
package-lock.json
105+
106106

107107
# Test coverage
108108
coverage/

0 commit comments

Comments
 (0)