3
3
workflow_call :
4
4
5
5
env :
6
+ SLACK_AUDIT_REPORT_CHANNEL : ${{ secrets.SLACK_AUDIT_REPORT_CHANNEL }}
6
7
SLACK_AUDIT_REPORT_KEY : ${{ secrets.SLACK_AUDIT_REPORT_KEY }}
8
+ REPORT_NAME : " report-vscode-fe"
7
9
8
10
jobs :
9
11
unit-tests :
@@ -18,21 +20,31 @@ jobs:
18
20
- name : Unit tests UI
19
21
run : yarn test:cov
20
22
21
- - name : Publish Test Results
22
- uses : EnricoMi/publish-unit-test-result-action@v2
23
+ - name : Upload Test Report
24
+ uses : actions/upload-artifact@v4
23
25
if : always()
24
26
with :
25
- check_name : ' FE Unit tests summary'
26
- comment_mode : ' failures'
27
- files : reports/junit.xml
27
+ name : ${{ env.REPORT_NAME }}
28
+ path : report
28
29
29
- - name : Generate test results
30
- uses : dorny/ test-reporter@v1
30
+ - name : Deploy report
31
+ uses : RedisInsight/RedisInsight/.github/actions/deploy- test-reports
31
32
if : always()
32
33
with :
33
- name : ' Test results: FE unit tests'
34
- path : reports/junit.xml
35
- reporter : jest-junit
36
- list-tests : ' failed'
37
- list-suites : ' failed'
38
- fail-on-error : ' false'
34
+ group : ' report'
35
+ AWS_BUCKET_NAME_TEST : ${{ vars.AWS_BUCKET_NAME_TEST }}
36
+ AWS_DEFAULT_REGION : ${{ vars.AWS_DEFAULT_REGION }}
37
+ AWS_DISTRIBUTION_ID : ${{ secrets.AWS_DISTRIBUTION_ID }}
38
+ AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
39
+ AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
40
+
41
+ - name : Get current date
42
+ id : date
43
+ if : always()
44
+ uses :
RedisInsight/RedisInsight/.github/actions/[email protected]
45
+
46
+ - name : Add link to report in the workflow summary
47
+ if : always()
48
+ run : |
49
+ link="${{ vars.DEFAULT_TEST_REPORTS_URL }}/${{ steps.date.outputs.date }}/${{ github.run_id }}/${{ env.REPORT_NAME }}/index.html"
50
+ echo "[${link}](${link})" >> $GITHUB_STEP_SUMMARY
0 commit comments