Skip to content

Commit f73b33c

Browse files
Added stage to display coverage
1 parent 60783bd commit f73b33c

1 file changed

Lines changed: 6 additions & 20 deletions

File tree

.github/workflows/ci-linux.yml

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ jobs:
1919
run: |
2020
npm run install:all
2121
- name: Run core unit tests with coverage
22-
run: npm run unit-coverage:test:core
22+
run: npm run unit-coverage:test:core 2>&1 | tee coverage-output.log
2323
- name: Display coverage report
24-
run: cat packages/core/coverage/coverage-summary.json
24+
run: grep -A 20 "coverage" coverage-output.log || cat coverage-output.log
2525
- name: Upload core coverage report
2626
uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 #v4
2727
with:
@@ -59,17 +59,10 @@ jobs:
5959
sudo apt-get install xvfb
6060
export DISPLAY=:99.0
6161
Xvfb -ac :99 -screen 0 1920x1080x16 &
62-
npm run e2e:test:checkmarx
62+
npm run e2e:test:checkmarx 2>&1 | tee e2e-coverage-output.log
6363
- name: Display e2e coverage report
6464
if: runner.os == 'Linux'
65-
run: cat packages/core/coverage/coverage-summary.json
66-
- name: Upload e2e coverage report
67-
if: runner.os == 'Linux'
68-
uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 #v4
69-
with:
70-
name: coverage-e2e
71-
path: packages/core/coverage/
72-
retention-days: 7
65+
run: grep -A 20 "coverage" e2e-coverage-output.log || cat e2e-coverage-output.log
7366
- name: Upload test artifacts
7467
if: ${{ failure() }}
7568
uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 #v4
@@ -111,17 +104,10 @@ jobs:
111104
sudo apt-get install xvfb
112105
export DISPLAY=:99.0
113106
Xvfb -ac :99 -screen 0 1920x1080x16 &
114-
npm run ui:test:checkmarx
107+
npm run ui:test:checkmarx 2>&1 | tee ui-coverage-output.log
115108
- name: Display ui coverage report
116109
if: runner.os == 'Linux'
117-
run: cat packages/core/coverage/coverage-summary.json
118-
- name: Upload ui coverage report
119-
if: runner.os == 'Linux'
120-
uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 #v4
121-
with:
122-
name: coverage-ui
123-
path: packages/core/coverage/
124-
retention-days: 7
110+
run: grep -A 20 "coverage" ui-coverage-output.log || cat ui-coverage-output.log
125111
- name: Upload test artifacts
126112
if: ${{ failure() }}
127113
uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 #v4

0 commit comments

Comments
 (0)