-
Notifications
You must be signed in to change notification settings - Fork 132
92 lines (73 loc) · 2.81 KB
/
e2e-qss-linux.yml
File metadata and controls
92 lines (73 loc) · 2.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
name: E2E with QSS linux
on: [workflow_call]
jobs:
linux:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04]
timeout-minutes: 180
env:
DISPLAY: ":99.0"
TEST_MODE: true
IS_CI: true
steps:
- uses: actions/checkout@v5
with:
submodules: 'recursive'
- name: Extract version
id: extract_version
uses: Saionaro/extract-package-version@fdb5b74adc1278ddb777dfed4c988b9d098bb48d # v1.2.1
with:
path: packages/mobile
- name: Check for major version
id: major-ver
run: |
echo ${{ steps.extract_version.outputs.version }}
if [[ "${{ steps.extract_version.outputs.version }}" =~ ^[[:digit:]]+\.0\.0(-alpha.[[:digit:]]+)?$ ]]; then
echo "This is a major version"
echo "match=true" >> $GITHUB_OUTPUT
else
echo "This is NOT a major version"
echo "match=false" >> $GITHUB_OUTPUT
fi
- name: Install WM
run: sudo apt install fluxbox
- name: Install libfuse2
run: sudo apt install libfuse2
- name: "Setup environment"
uses: ./.github/actions/setup-env
with:
install-docker: true
cachePrefix: "e2e-crossplatform-linux-qss"
bootstrap-packages: "@quiet/eslint-config,@quiet/logger,@quiet/common,@quiet/types,@quiet/state-manager,@quiet/backend,@quiet/identity,@quiet/desktop,backend-bundle,e2e-tests,helia,@quiet/node-common"
- name: Build qss
run: npm run build:qss
- name: Start QSS docker
run: npm run start:qss
- name: Run X11
run: |
Xvfb :99 -screen 0 1920x1080x24 &
sleep 3
fluxbox &
- name: Build App Image
working-directory: ./packages/desktop
run: ENVFILE=.env.e2e.qss npm run distUbuntu && VERSION=$(jq -r ".version" package.json) && cd dist && FILE_NAME=$(ls | grep $VERSION) && echo "FILE_NAME=$(ls | grep $VERSION)" >> $GITHUB_ENV && cp $FILE_NAME ../../e2e-tests/Quiet && export FILE_NAME=$FILE_NAME
- name: Chmod
working-directory: ./packages/e2e-tests/Quiet
run: chmod +x $FILE_NAME
- name: Run multiple clients with QSS test
uses: nick-fields/retry@14672906e672a08bd6eeb15720e9ed3ce869cdd4 # v2.9.0
with:
timeout_minutes: 25
max_attempts: 3
command: cd packages/e2e-tests && npm run test multipleClients.qss.test.ts
- name: Run one client with QSS test
uses: nick-fields/retry@14672906e672a08bd6eeb15720e9ed3ce869cdd4 # v2.9.0
with:
timeout_minutes: 25
max_attempts: 3
command: cd packages/e2e-tests && npm run test oneClient.qss.test.ts
- name: Stop QSS docker
if: always()
run: npm run stop:qss