File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 5
5
type :
6
6
description : Type of report (unit or integration)
7
7
type : string
8
- default : unit
9
8
resource_name :
10
- description : Resource name of report folder
9
+ description : Resource name of coverage report
11
10
type : string
12
11
13
12
jobs :
14
13
coverage-unit :
15
14
runs-on : ubuntu-latest
16
- name : Jest tests coverage
15
+ name : Unit tests coverage
17
16
if : ${{ inputs.type == 'unit' }}
18
17
steps :
19
18
- uses : actions/checkout@v4
38
37
39
38
coverage-integration :
40
39
runs-on : ubuntu-latest
41
- name : Jest tests coverage
40
+ name : Integration tests coverage
42
41
if : ${{ inputs.type == 'integration' }}
43
42
steps :
44
43
- uses : actions/checkout@v4
51
50
- name : Parse Coverage Summary
52
51
id : parse-coverage
53
52
run : |
54
- # Define a reusable function to extract coverage data
53
+ # Extract coverage data from file.
54
+ # Example of processed row:
55
+ # Statements : 81.75% ( 16130/19730 )
56
+ # field '$3' = 81.75%, field '$5' = 16130
55
57
extract_coverage_data() {
56
58
local keyword=$1
57
59
local field=$2
Original file line number Diff line number Diff line change @@ -114,6 +114,7 @@ jobs:
114
114
secrets : inherit
115
115
with :
116
116
resource_name : report-be
117
+ type : unit
117
118
118
119
integration-tests :
119
120
needs : changes
You can’t perform that action at this time.
0 commit comments