-
Notifications
You must be signed in to change notification settings - Fork 132
84 lines (69 loc) · 2.75 KB
/
e2e-mac.yml
File metadata and controls
84 lines (69 loc) · 2.75 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
name: E2E Mac
on: [workflow_call]
jobs:
mac:
runs-on: macos-latest
timeout-minutes: 180
env:
TEST_MODE: true
IS_E2E: true
IS_CI: true
steps:
- uses: actions/checkout@v5
with:
submodules: 'recursive'
- name: "Setup environment"
uses: ./.github/actions/setup-env
with:
install-docker: false
cachePrefix: "e2e-crossplatform-mac"
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: Before build
uses: ./.github/actions/before-build
with:
source-path: darwin
envfile: .env.e2e
- name: Build App Image
working-directory: ./packages/desktop
run: node_modules/.bin/electron-builder --mac
- name: VERSION env
working-directory: ./packages/desktop
run: echo "VERSION=$(jq -r ".version" package.json)" >> $GITHUB_ENV
- name: FILE_NAME env
working-directory: ./packages/desktop/dist
run: echo "FILE_NAME="Quiet-$VERSION-arm64.dmg"" >> $GITHUB_ENV
- name: List dist dir content
working-directory: ./packages/desktop/dist
run: ls -al
- name: Chmod
working-directory: ./packages/desktop/dist
run: chmod +x $FILE_NAME
- name: Mount installer file in volume on system
working-directory: ./packages/desktop/dist
run: hdiutil mount $FILE_NAME
- name: Add App file to applications
run: cd ~ && cp -R "/Volumes/Quiet $VERSION-arm64/Quiet.app" /Applications
- name: Run one client test
uses: nick-fields/retry@14672906e672a08bd6eeb15720e9ed3ce869cdd4 # v2.9.0
with:
timeout_minutes: 15
max_attempts: 3
command: cd packages/e2e-tests && npm run test oneClient.test.ts
- name: Run user profile test
uses: nick-fields/retry@14672906e672a08bd6eeb15720e9ed3ce869cdd4 # v2.9.0
with:
timeout_minutes: 25
max_attempts: 3
command: cd packages/e2e-tests && npm run test userProfile.test.ts
- name: Run multiple clients 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.test.ts
- name: Run invitation link test - Includes 2 separate application clients
uses: nick-fields/retry@14672906e672a08bd6eeb15720e9ed3ce869cdd4 # v2.9.0
with:
timeout_minutes: 25
max_attempts: 3
command: cd packages/e2e-tests && npm run test invitationLink.test.ts