|
19 | 19 | run: | |
20 | 20 | npm run install:all |
21 | 21 | - 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 |
23 | 23 | - 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 |
25 | 25 | - name: Upload core coverage report |
26 | 26 | uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 #v4 |
27 | 27 | with: |
@@ -59,17 +59,10 @@ jobs: |
59 | 59 | sudo apt-get install xvfb |
60 | 60 | export DISPLAY=:99.0 |
61 | 61 | 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 |
63 | 63 | - name: Display e2e coverage report |
64 | 64 | 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 |
73 | 66 | - name: Upload test artifacts |
74 | 67 | if: ${{ failure() }} |
75 | 68 | uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 #v4 |
@@ -111,17 +104,10 @@ jobs: |
111 | 104 | sudo apt-get install xvfb |
112 | 105 | export DISPLAY=:99.0 |
113 | 106 | 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 |
115 | 108 | - name: Display ui coverage report |
116 | 109 | 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 |
125 | 111 | - name: Upload test artifacts |
126 | 112 | if: ${{ failure() }} |
127 | 113 | uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 #v4 |
|
0 commit comments