File tree Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Unit Tests - Client Advisor
2+
3+ on :
4+ push :
5+ branches : main
6+ # Trigger on changes in these specific paths
7+ paths :
8+ - ' ClientAdvisor/**'
9+ pull_request :
10+ branches : main
11+ types :
12+ - opened
13+ - ready_for_review
14+ - reopened
15+ - synchronize
16+ paths :
17+ - ' ClientAdvisor/**'
18+
19+ jobs :
20+ test_client_advisor :
21+
22+ name : Client Advisor Tests
23+ runs-on : ubuntu-latest
24+ # The if condition ensures that this job only runs if changes are in the ClientAdvisor folder
25+
26+ steps :
27+ - uses : actions/checkout@v4
28+ - name : Set up Python
29+ uses : actions/setup-python@v5
30+ with :
31+ python-version : " 3.11"
32+ - name : Set up Node.js
33+ uses : actions/setup-node@v3
34+ with :
35+ node-version : ' 20'
36+ - name : Install Frontend Dependencies
37+ run : |
38+ cd ClientAdvisor/App/frontend
39+ npm install
40+ - name : Run Frontend Tests with Coverage
41+ run : |
42+ cd ClientAdvisor/App/frontend
43+ npm run test -- --coverage
44+ - uses : actions/upload-artifact@v4
45+ with :
46+ name : client-advisor-frontend-coverage
47+ path : |
48+ ClientAdvisor/App/frontend/coverage/
49+ ClientAdvisor/App/frontend/coverage/lcov-report/
You can’t perform that action at this time.
0 commit comments