We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0da6c6e commit c3595aaCopy full SHA for c3595aa
.github/workflows/unit-test.yml
@@ -1,11 +1,12 @@
1
-name: Run Unit Tests
+name: Unit Test & Reports
2
3
on:
4
pull_request:
5
types: [opened, synchronize, reopened]
6
7
jobs:
8
- run-tests:
+ build-test:
9
+ name: Build & Test
10
runs-on: ubuntu-latest
11
steps:
12
- name: Checkout code
@@ -24,5 +25,18 @@ jobs:
24
25
- name: Configure Region
26
run: csdx config:set:region AWS-NA
27
- - name: Run tests
28
- run: npm run test
+ - name: Run tests with coverage
29
+ run: npm run test:unit:report:json
30
+
31
+ - name: Test Report
32
+ uses: dorny/test-reporter@v1
33
+ if: success() || failure()
34
+ with:
35
+ name: Mocha Unit Test
36
+ path: report.json
37
+ reporter: mocha-json
38
39
+ - name: Coverage Report
40
+ uses: lucassabreu/comment-coverage-clover@main
41
42
+ file: coverage/clover.xml
0 commit comments