Skip to content

Commit c207a2d

Browse files
committed
RI-7038: apply review suggestions
1 parent 532a0a2 commit c207a2d

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.github/workflows/code-coverage.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,14 @@ on:
55
type:
66
description: Type of report (unit or integration)
77
type: string
8-
default: unit
98
resource_name:
10-
description: Resource name of report folder
9+
description: Resource name of coverage report
1110
type: string
1211

1312
jobs:
1413
coverage-unit:
1514
runs-on: ubuntu-latest
16-
name: Jest tests coverage
15+
name: Unit tests coverage
1716
if: ${{ inputs.type == 'unit' }}
1817
steps:
1918
- uses: actions/checkout@v4
@@ -38,7 +37,7 @@ jobs:
3837

3938
coverage-integration:
4039
runs-on: ubuntu-latest
41-
name: Jest tests coverage
40+
name: Integration tests coverage
4241
if: ${{ inputs.type == 'integration' }}
4342
steps:
4443
- uses: actions/checkout@v4
@@ -51,7 +50,10 @@ jobs:
5150
- name: Parse Coverage Summary
5251
id: parse-coverage
5352
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
5557
extract_coverage_data() {
5658
local keyword=$1
5759
local field=$2

.github/workflows/tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ jobs:
114114
secrets: inherit
115115
with:
116116
resource_name: report-be
117+
type: unit
117118

118119
integration-tests:
119120
needs: changes

0 commit comments

Comments
 (0)