Skip to content

Commit 4fb7eba

Browse files
committed
Merge branch 'e2e/test' into be/test/pr
2 parents ea753e4 + 1bb345d commit 4fb7eba

File tree

5 files changed

+62
-71
lines changed

5 files changed

+62
-71
lines changed

.github/workflows/tests-backend.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@ jobs:
5151
- name: Unit tests API
5252
run: yarn --cwd redisinsight/api/ test:cov --ci --silent
5353

54+
- name: Publish Test Results
55+
uses: EnricoMi/publish-unit-test-result-action@v2
56+
if: always()
57+
with:
58+
comment_mode: 'failures'
59+
files: redisinsight/api/reports/jest-*.xml
60+
5461
- name: Generate test results
5562
uses: dorny/test-reporter@v1
5663
if: always()
@@ -59,12 +66,4 @@ jobs:
5966
path: redisinsight/api/reports/jest-*.xml
6067
reporter: jest-junit
6168
list-tests: 'failed'
62-
max-annotations: '1'
63-
fail-on-error: false
6469

65-
- name: Publish Test Results
66-
uses: EnricoMi/publish-unit-test-result-action@v2
67-
if: always()
68-
with:
69-
comment_mode: 'failures'
70-
files: redisinsight/api/reports/jest-*.xml

.github/workflows/tests-e2e-appimage.yml

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -55,24 +55,6 @@ jobs:
5555
run: |
5656
.github/e2e/test.app-image.sh
5757
58-
- name: Generate test results
59-
uses: dorny/test-reporter@v1
60-
if: always()
61-
with:
62-
name: 'Test results: E2E (AppImage)'
63-
path: tests/e2e/results/results.xml
64-
reporter: java-junit
65-
list-tests: 'failed'
66-
max-annotations: '1'
67-
fail-on-error: false
68-
69-
- name: Publish Test Results
70-
uses: EnricoMi/publish-unit-test-result-action@v2
71-
if: always()
72-
with:
73-
comment_mode: 'failures'
74-
files: tests/e2e/results/results.xml
75-
7658
- name: Upload Test Report
7759
uses: actions/upload-artifact@v4
7860
if: always()
@@ -86,5 +68,20 @@ jobs:
8668
APP_BUILD_TYPE="Electron (Linux)" node ./.github/e2e-results.js
8769
curl -H "Content-type: application/json" --data @e2e.report.json -H "Authorization: Bearer $SLACK_TEST_REPORT_KEY" -X POST https://slack.com/api/chat.postMessage
8870
71+
- name: Publish Test Results
72+
uses: EnricoMi/publish-unit-test-result-action@v2
73+
if: always()
74+
with:
75+
comment_mode: off
76+
files: tests/e2e/results/results.xml
77+
78+
- name: Generate test results
79+
uses: dorny/test-reporter@v1
80+
if: always()
81+
with:
82+
name: 'Test results: E2E (AppImage)'
83+
path: tests/e2e/results/results.xml
84+
reporter: java-junit
85+
list-tests: 'failed'
8986

9087

.github/workflows/tests-e2e-docker.yml

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -79,24 +79,6 @@ jobs:
7979
-f tests/e2e/docker.web.docker-compose.yml \
8080
up --abort-on-container-exit --force-recreate
8181
82-
- name: Generate test results for ${{ matrix.parallel }}th node
83-
uses: dorny/test-reporter@v1
84-
if: always()
85-
with:
86-
name: 'Test results: E2E (docker) ${{ matrix.parallel }}th node'
87-
path: /usr/src/app/results/results.xml
88-
reporter: java-junit
89-
list-tests: 'failed'
90-
max-annotations: '1'
91-
fail-on-error: false
92-
93-
- name: Publish Test Results
94-
uses: EnricoMi/publish-unit-test-result-action/linux@v2
95-
if: always()
96-
with:
97-
comment_mode: 'failures'
98-
files: /usr/src/app/results/results.xml
99-
10082
- name: Upload Test Report
10183
uses: actions/upload-artifact@v4
10284
if: always()
@@ -110,3 +92,19 @@ jobs:
11092
node ./.github/e2e-results.js
11193
curl -H "Content-type: application/json" --data @e2e.report.json -H "Authorization: Bearer $SLACK_TEST_REPORT_KEY" -X POST https://slack.com/api/chat.postMessage
11294
95+
- name: Publish Test Results
96+
uses: EnricoMi/publish-unit-test-result-action/linux@v2
97+
if: always()
98+
with:
99+
comment_mode: off
100+
check_run: false
101+
files: /usr/src/app/results/results.xml
102+
103+
- name: Generate test results for ${{ matrix.parallel }}th node
104+
uses: dorny/test-reporter@v1
105+
if: always()
106+
with:
107+
name: 'Test results: E2E (docker) ${{ matrix.parallel }}th node'
108+
path: /usr/src/app/results/results.xml
109+
reporter: java-junit
110+
list-tests: 'failed'

.github/workflows/tests-frontend.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,13 @@ jobs:
4949
- name: Unit tests UI
5050
run: yarn test:cov --ci --silent
5151

52+
- name: Publish Test Results
53+
uses: EnricoMi/publish-unit-test-result-action@v2
54+
if: always()
55+
with:
56+
comment_mode: 'failures'
57+
files: reports/jest-*.xml
58+
5259
- name: Generate test results
5360
uses: dorny/test-reporter@v1
5461
if: always()
@@ -57,12 +64,3 @@ jobs:
5764
path: reports/jest-*.xml
5865
reporter: jest-junit
5966
list-tests: 'failed'
60-
max-annotations: '1'
61-
fail-on-error: false
62-
63-
- name: Publish Test Results
64-
uses: EnricoMi/publish-unit-test-result-action@v2
65-
if: always()
66-
with:
67-
comment_mode: 'failures'
68-
files: reports/jest-*.xml

.github/workflows/tests-integration.yml

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -111,24 +111,6 @@ jobs:
111111
cp ./redisinsight/api/test/test-runs/coverage/test-run-result.xml ./itest/results/${{ matrix.rte }}.result.xml
112112
cp ./redisinsight/api/test/test-runs/coverage/test-run-coverage.json ./itest/coverages/${{ matrix.rte }}.coverage.json
113113
114-
- name: Generate test results
115-
uses: dorny/test-reporter@v1
116-
if: always()
117-
with:
118-
name: 'Test results: IT (${{ matrix.rte }}) tests'
119-
path: itest/results/*.result.xml
120-
reporter: jest-junit
121-
list-tests: 'failed'
122-
max-annotations: '1'
123-
fail-on-error: false
124-
125-
- name: Publish Test Results
126-
uses: EnricoMi/publish-unit-test-result-action@v2
127-
if: always()
128-
with:
129-
comment_mode: 'failures'
130-
files: itest/results/*.result.xml
131-
132114
- name: Upload coverage files as artifact
133115
if: always()
134116
uses: actions/upload-artifact@v4
@@ -142,6 +124,23 @@ jobs:
142124
ITEST_NAME=${{ matrix.rte }} node ./.github/itest-results.js
143125
curl -H "Content-type: application/json" --data @itests.report.json -H "Authorization: Bearer $SLACK_TEST_REPORT_KEY" -X POST https://slack.com/api/chat.postMessage
144126
127+
- name: Publish Test Results
128+
uses: EnricoMi/publish-unit-test-result-action@v2
129+
if: always()
130+
with:
131+
comment_mode: off
132+
check_run: false
133+
files: itest/results/*.result.xml
134+
135+
- name: Generate test results
136+
uses: dorny/test-reporter@v1
137+
if: always()
138+
with:
139+
name: 'Test results: IT (${{ matrix.rte }}) tests'
140+
path: itest/results/*.result.xml
141+
reporter: jest-junit
142+
list-tests: 'failed'
143+
145144
coverage:
146145
runs-on: ubuntu-latest
147146
name: Final coverage

0 commit comments

Comments
 (0)