10
10
11
11
env :
12
12
SLACK_TEST_REPORT_KEY : ${{ secrets.SLACK_TEST_REPORT_KEY }}
13
+ TEST_BIG_DB_DUMP : ${{ secrets.TEST_BIG_DB_DUMP }}
13
14
14
15
jobs :
15
16
e2e-linux-tests :
16
17
runs-on : ubuntu-latest
17
18
name : E2E tests
18
- container :
19
- image : docker:latest
20
- options : --privileged
21
- volumes :
22
- - /usr/src/app/results:/usr/src/app/results
23
- - /usr/src/app/report:/usr/src/app/report
24
19
strategy :
25
20
fail-fast : false
26
21
matrix :
27
22
# Number of threads to run tests
28
- # parallel: [0, 1, 2, 3]
29
- parallel : [0]
23
+ parallel : [0, 1, 2, 3]
30
24
31
25
steps :
32
26
- uses : actions/checkout@v4
33
27
34
- # - name: Setup repository
35
- # run: git config --global --add safe.directory /__w/RedisInsight/Redis-for-VS-Code
36
-
37
- - name : Start Xvfb
38
- run : |
39
- apt-get install -y xvfb net-tools
40
- Xvfb :99 -screen 0 1920x1080x24 &
28
+ - name : Setup Node
29
+ uses : actions/setup-node@v4
30
+ with :
31
+ node-version : ' 20.15'
41
32
42
33
- name : Download linux artifact
43
34
uses : actions/download-artifact@v4
@@ -48,14 +39,15 @@ jobs:
48
39
- name : Setup e2e tests
49
40
working-directory : ./tests/e2e
50
41
run : |
42
+ npm install -g @vscode/vsce
51
43
yarn install
52
44
yarn compile
53
45
ls -R dist/tests/
54
46
55
47
- name : Generate short list of the test files
56
48
working-directory : ./tests/e2e
57
49
run : |
58
- testFiles=$(find tests -type f -name '*.e2e.js' | sort | awk "NR % 4 == ${{ matrix.parallel }}")
50
+ testFiles=$(find dist -type f -name '*.e2e.js' | sort | awk "NR % 1 == ${{ matrix.parallel }}")
59
51
echo $testFiles
60
52
61
53
# Multi-Line value
@@ -67,12 +59,12 @@ jobs:
67
59
run : |
68
60
.github/e2e/test.app.sh
69
61
70
- - name : Upload Test Report
62
+ - name : Upload Test Mocha Report
71
63
uses : actions/upload-artifact@v4
72
64
if : always()
73
65
with :
74
- name : report-linux-node-${{ matrix.parallel }}
75
- path : /usr/src/app/ report
66
+ name : mocha- report-linux-node-${{ matrix.parallel }}
67
+ path : tests/e2e/mochawesome- report
76
68
77
69
- name : Send report to Slack
78
70
if : inputs.report && always()
85
77
if : always()
86
78
with :
87
79
name : ' Test results: E2E (linux) ${{ matrix.parallel }}th node'
88
- path : /usr/src/app/results/results .xml
80
+ path : tests/e2e/mochawesome-report/junit-report .xml
89
81
reporter : java-junit
90
82
list-tests : ' failed'
91
83
list-suites : ' failed'
99
91
id : merge-artifacts
100
92
uses : actions/upload-artifact/merge@v4
101
93
with :
102
- name : report-e2e-linux
103
- pattern : report-linux-node-*
94
+ name : mocha-report-linux
95
+ pattern : mocha-report-linux-node-*
96
+ separate-directories : true
104
97
delete-merged : true
98
+ retention-days : 5
0 commit comments