-
-
Notifications
You must be signed in to change notification settings - Fork 9
81 lines (71 loc) · 2.25 KB
/
desktop-mac-m1-test-pull.yml
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
name: 'Desktop-mac M1 full test suite run on pull request'
on:
pull_request:
branches: [ main ]
concurrency:
group: pr-desktop-mac-m1-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
test-desktop-mac-m1:
runs-on: macos-14
timeout-minutes: 90
steps:
- uses: actions/checkout@v4
- name: macos hardware info
run: system_profiler SPSoftwareDataType SPHardwareDataType
- name: setup node
uses: actions/setup-node@v4
with:
node-version: 20
- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
- name: npm install ci deps
env:
GH_TOKEN: ${{ github.token }}
run: npm ci
- name: Download phoenix and build build phoenix dist-test
env:
GH_TOKEN: ${{ github.token }}
run: |
npm run _ci-clonePhoenixForTests
cd ..
cd phoenix
npm ci
npm run build
npm run release:prod
- name: build test runner
env:
GH_TOKEN: ${{ github.token }}
run: |
npm ci
npm run releaseDistTestDebug
- name: Run tauri unit tests
uses: nick-fields/retry@v3
with:
timeout_minutes: 12
max_attempts: 3
command: ./src-tauri/target/debug/phoenix-test --run-tests=unit -q
- name: Run tauri integration tests
uses: nick-fields/retry@v3
with:
timeout_minutes: 12
max_attempts: 3
command: ./src-tauri/target/debug/phoenix-test --run-tests=integration -q
- name: Run tauri mainview tests
uses: nick-fields/retry@v3
with:
timeout_minutes: 12
max_attempts: 3
command: ./src-tauri/target/debug/phoenix-test --run-tests=mainview -q
- name: Run tauri livepreview tests
uses: nick-fields/retry@v3
with:
timeout_minutes: 12
max_attempts: 3
command: ./src-tauri/target/debug/phoenix-test --run-tests=livepreview -q
- name: Run tauri LegacyInteg tests
uses: nick-fields/retry@v3
with:
timeout_minutes: 30
max_attempts: 3
command: ./src-tauri/target/debug/phoenix-test --run-tests=LegacyInteg -q