File tree Expand file tree Collapse file tree 14 files changed +53
-67
lines changed Expand file tree Collapse file tree 14 files changed +53
-67
lines changed Original file line number Diff line number Diff line change 48
48
49
49
environment :
50
50
description : Environment to run build
51
- type : string
51
+ type : environment
52
52
default : ' staging'
53
53
required : false
54
54
Original file line number Diff line number Diff line change 7
7
type : string
8
8
default : ' *'
9
9
10
+ permissions :
11
+ contents : write
12
+
10
13
jobs :
11
14
deploy :
12
- # Grant GITHUB_TOKEN the permissions required to make a Pages deployment
13
- permissions :
14
- pages : write # to deploy to Pages
15
- id-token : write # to verify the deployment originates from an appropriate source
16
-
17
- # Deploy to the github-pages environment
18
- environment :
19
- name : github-pages
20
- url : ${{ steps.deployment.outputs.page_url }}
21
-
22
- # Specify runner + deployment step
23
15
runs-on : ubuntu-latest
24
16
steps :
25
- - name : Merge artifacts by group
26
- id : merge-artifacts
27
- uses : actions/upload -artifact/merge @v4
17
+ - uses : actions/checkout@v4
18
+
19
+ - uses : actions/download -artifact@v4
28
20
with :
29
- name : ${{ inputs.group }}
30
21
pattern : ${{ format('{0}*', inputs.group) }}
31
- separate-directories : true
32
- delete-merged : true
22
+ path : public
33
23
34
- - name : Deploy to GitHub Pages
35
- id : deployment
36
- uses : actions/deploy-pages@v4
24
+ - name : Deploy 🚀
25
+ uses : JamesIves/github-pages-deploy-action@v4
37
26
with :
38
- artifact_name : ${{ steps.merge-artifacts.outputs.artifact-id }}
39
- preview : true # TODO: for test
40
-
27
+ folder : public
Original file line number Diff line number Diff line change 9
9
required : false
10
10
11
11
env :
12
+ SLACK_AUDIT_REPORT_CHANNEL : ${{ secrets.SLACK_AUDIT_REPORT_CHANNEL }}
12
13
SLACK_AUDIT_REPORT_KEY : ${{ secrets.SLACK_AUDIT_REPORT_KEY }}
13
14
DEFAULT_GITHUB_PAGES_URL : ${{ vars.DEFAULT_GITHUB_PAGES_URL }}
14
15
REPORT_NAME : " report-be"
19
20
runs-on : ubuntu-latest
20
21
environment :
21
22
name : staging
22
- url : ${{ env.DEFAULT_GITHUB_PAGES_URL }}/be/
23
+ url : ${{ env.DEFAULT_GITHUB_PAGES_URL }}/${{ env.REPORT_NAME }}/report
23
24
steps :
24
25
- uses : actions/checkout@v4
25
26
@@ -56,28 +57,26 @@ jobs:
56
57
- name : Unit tests API
57
58
run : yarn --cwd redisinsight/api/ test:cov --ci --silent
58
59
60
+
61
+ - name : Prepare report
62
+ if : always()
63
+ working-directory : redisinsight/api
64
+ run : |
65
+ mkdir report
66
+ cp -R ./coverage ./report
67
+ cp -a ./reports ./report/report
68
+
59
69
- name : Upload Test Report
60
70
uses : actions/upload-artifact@v4
61
71
if : always()
62
72
with :
63
73
name : ${{ env.REPORT_NAME }}
64
- path : redisinsight/api/reports
65
-
66
- - name : Generate test results
67
- uses : dorny/test-reporter@v1
68
- if : always()
69
- with :
70
- name : ' Test results: BE unit tests'
71
- path : redisinsight/api/reports/jest-*.xml
72
- reporter : jest-junit
73
- list-tests : ' failed'
74
- list-suites : ' failed'
75
- fail-on-error : ' false'
74
+ path : redisinsight/api/report
76
75
77
76
deploy-pages :
78
77
name : Deploy report
79
78
uses : ./.github/workflows/deploy-pages.yml
80
79
needs : ' unit-tests'
81
80
if : always()
82
81
with :
83
- group : ' reports '
82
+ group : ' report '
Original file line number Diff line number Diff line change 40
40
name : E2E AppImage tests
41
41
environment :
42
42
name : production
43
- url : ${{ env.DEFAULT_GITHUB_PAGES_URL }}/e2e/ ${{ env.REPORT_NAME }}
43
+ url : ${{ env.DEFAULT_GITHUB_PAGES_URL }}/${{ env.REPORT_NAME }}
44
44
steps :
45
45
- uses : actions/checkout@v4
46
46
55
55
run : |
56
56
sudo apt-get update -y
57
57
sudo apt-get install kmod libfuse2 xvfb net-tools fluxbox netcat -y
58
- # sudo apt-get install kmod libfuse2 xvfb net-tools fluxbox netcat appimagelauncher -y
59
58
60
59
- name : Download AppImage Artifacts
61
60
uses : actions/download-artifact@v4
@@ -104,4 +103,4 @@ jobs:
104
103
needs : ' e2e-tests-appimage'
105
104
if : always()
106
105
with :
107
- pattern : ' report'
106
+ group : ' report'
Original file line number Diff line number Diff line change 28
28
TEST_BIG_DB_DUMP : ${{ secrets.TEST_BIG_DB_DUMP }}
29
29
DEFAULT_GITHUB_PAGES_URL : ${{ vars.DEFAULT_GITHUB_PAGES_URL }}
30
30
E2E_VOLUME_PATH : " /usr/src/app"
31
+ REPORT_NAME : " report-docker-node"
31
32
32
33
jobs :
33
34
e2e-docker-tests :
34
35
runs-on : ubuntu-latest
35
36
name : E2E Docker tests
36
37
environment :
37
38
name : production
38
- url : ${{ env.DEFAULT_GITHUB_PAGES_URL }}/e2e/ ${{ matrix.parallel }}
39
+ url : ${{ env.DEFAULT_GITHUB_PAGES_URL }}/${{ env.REPORT_NAME }}- ${{ matrix.parallel }}
39
40
container :
40
41
image : docker:latest
41
42
options : --privileged
@@ -65,11 +66,11 @@ jobs:
65
66
uses : actions/download-artifact@v4
66
67
with :
67
68
name : docker
69
+ path : ./release
68
70
69
71
- name : Load built docker image from workspace
70
72
run : |
71
- docker image load -i ./docker/docker-linux-alpine.amd64.tar
72
- # docker pull redis/redisinsight
73
+ docker image load -i ./release/docker-linux-alpine.amd64.tar
73
74
74
75
- name : Generate short list of the test files
75
76
working-directory : ./tests/e2e
@@ -125,4 +126,4 @@ jobs:
125
126
needs : ' e2e-docker-tests'
126
127
if : always()
127
128
with :
128
- pattern : ' report-* '
129
+ group : ' report'
Original file line number Diff line number Diff line change 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 }}
7
8
DEFAULT_GITHUB_PAGES_URL : ${{ vars.DEFAULT_GITHUB_PAGES_URL }}
8
9
REPORT_NAME : " report-fe"
13
14
name : Frontend tests
14
15
environment :
15
16
name : staging
16
- url : ${{ env.DEFAULT_GITHUB_PAGES_URL }}/fe/
17
+ url : ${{ env.DEFAULT_GITHUB_PAGES_URL }}/${{ env.REPORT_NAME }}/report
17
18
steps :
18
19
- uses : actions/checkout@v4
19
20
@@ -54,28 +55,24 @@ jobs:
54
55
- name : Unit tests UI
55
56
run : yarn test:cov --ci --silent
56
57
58
+ - name : Prepare report
59
+ if : always()
60
+ run : |
61
+ mkdir report
62
+ cp -R ./coverage ./report
63
+ cp -a ./reports ./report/report
64
+
57
65
- name : Upload Test Report
58
66
uses : actions/upload-artifact@v4
59
67
if : always()
60
68
with :
61
69
name : ${{ env.REPORT_NAME }}
62
- path : reports
63
-
64
- - name : Generate test results
65
- uses : dorny/test-reporter@v1
66
- if : always()
67
- with :
68
- name : ' Test results: FE unit tests'
69
- path : reports/jest-*.xml
70
- reporter : jest-junit
71
- list-tests : ' failed'
72
- list-suites : ' failed'
73
- fail-on-error : ' false'
70
+ path : report
74
71
75
72
deploy-pages :
76
73
name : Deploy report
77
74
uses : ./.github/workflows/deploy-pages.yml
78
75
needs : ' unit-tests'
79
76
if : always()
80
77
with :
81
- group : ' reports '
78
+ group : ' report '
Original file line number Diff line number Diff line change 25
25
26
26
env :
27
27
SLACK_AUDIT_REPORT_KEY : ${{ secrets.SLACK_AUDIT_REPORT_KEY }}
28
+ SLACK_AUDIT_REPORT_CHANNEL : ${{ secrets.SLACK_AUDIT_REPORT_CHANNEL }}
28
29
TEST_MEDIUM_DB_DUMP : ${{ secrets.TEST_MEDIUM_DB_DUMP }}
29
30
TEST_BIG_DB_DUMP : ${{ secrets.TEST_BIG_DB_DUMP }}
30
31
DEFAULT_GITHUB_PAGES_URL : ${{ vars.DEFAULT_GITHUB_PAGES_URL }}
32
+ REPORT_NAME : " report-it"
31
33
ITESTS_NAMES : |
32
34
{
33
35
"oss-st-5": "OSS Standalone v5",
86
88
needs : set-matrix
87
89
environment :
88
90
name : production
89
- url : ${{ env.DEFAULT_GITHUB_PAGES_URL }}/it/ ${{ matrix.rte }}
91
+ url : ${{ env.DEFAULT_GITHUB_PAGES_URL }}/${{ env.REPORT_NAME }}- ${{ matrix.rte }}
90
92
strategy :
91
93
fail-fast : false
92
94
matrix :
Original file line number Diff line number Diff line change @@ -50,4 +50,5 @@ RI_NOTIFICATION_SYNC_INTERVAL=30000
50
50
51
51
RI_FEATURES_CONFIG_URL = http://localhost:5551/remote/features-config.json
52
52
RI_FEATURES_CONFIG_SYNC_INTERVAL = 50000
53
- REMOTE_FOLDER_PATH = /home/circleci/project/tests/e2e/remote
53
+ REMOTE_FOLDER_PATH = /home/runner/work/RedisInsight/RedisInsight/tests/e2e/remote
54
+ # REMOTE_FOLDER_PATH=/home/circleci/project/tests/e2e/remote
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ import testcafe from 'testcafe';
29
29
} ,
30
30
{
31
31
name : 'html' ,
32
- output : './report/report .html'
32
+ output : './report/index .html'
33
33
}
34
34
] )
35
35
. run ( {
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ import testcafe from 'testcafe';
29
29
} ,
30
30
{
31
31
name : 'html' ,
32
- output : './report/report .html'
32
+ output : './report/index .html'
33
33
}
34
34
] )
35
35
. run ( {
You can’t perform that action at this time.
0 commit comments