File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Authlete Demo App Tests
1+ name : CI / Tests & Coverage
22
3+ # Trigger workflow
34on :
45 push :
6+ branches : [main, develop] # Run on main & develop
7+ pull_request : # Run on all PRs targeting any branch
58 branches : ["*"]
6- pull_request :
79
810jobs :
911 test :
1012 runs-on : ubuntu-latest
13+
1114 steps :
1215 - uses : actions/checkout@v3
16+
1317 - name : Setup Node.js
1418 uses : actions/setup-node@v3
1519 with :
1620 node-version : 20
21+ cache : " npm"
22+
1723 - name : Install dependencies
1824 run : npm ci
19- - name : Run Tests
20- run : npm run test
25+
26+ - name : Run Vitest
27+ run : npm run test -- --coverage
28+
2129 - name : Upload Coverage
22- if : success()
23- uses : actions/upload-artifact@v3
30+ uses : actions/upload-artifact@v4
31+ if : always()
2432 with :
2533 name : coverage-report
2634 path : coverage/
You can’t perform that action at this time.
0 commit comments