-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (35 loc) · 1.07 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Test Codebase
on:
pull_request:
branches: [ main ]
permissions:
contents: read
jobs:
run_tests:
name: Test Codebase
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout "${{ github.repository }}"
uses: actions/checkout@v4
- name: Set up Node v22
uses: actions/setup-node@v4
with:
node-version: '22.5.1'
- name: Install dependencies
run: |
cd CoVAR-app && npm ci
- name: Test Codebase
run: |
cd CoVAR-app && npm run test
- name: Jest Coverage Comment
id: coverageComment
uses: MishaKav/jest-coverage-comment@main
with:
hide-comment: true
coverage-summary-path: ./CoVAR-app/coverage/coverage-summary.json
- name: Check the output coverage
run: |
echo "Coverage Percentage - ${{ steps.coverageComment.outputs.coverage }}"
echo "Coverage Color - ${{ steps.coverageComment.outputs.color }}"
echo "Summary HTML - ${{ steps.coverageComment.outputs.summaryHtml }}"