-
-
Notifications
You must be signed in to change notification settings - Fork 12
121 lines (109 loc) · 4.07 KB
/
desktop-linux-test-pull.yml
File metadata and controls
121 lines (109 loc) · 4.07 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
name: 'Desktop-Linux full test suite run on pull request'
on:
pull_request:
branches: [ main ]
concurrency:
group: pr-desktop-linux-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
test-desktop-linux:
runs-on: ubuntu-22.04
timeout-minutes: 90
steps:
- uses: actions/checkout@v4
- name: setup node
uses: actions/setup-node@v4
with:
node-version: 24
- name: install dependencies (ubuntu only)
run: |
sudo apt-get update
sudo apt install build-essential curl wget file libssl-dev
sudo apt-get install xvfb
# libfuse2 is required for AppImages to run
sudo apt-get install libfuse2
- 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 }}
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
run: |
npm run _ci-clonePhoenixForTests
cd ..
cd phoenix
npm ci
npm run build
npm run release:dev
- name: build test runner
env:
GH_TOKEN: ${{ github.token }}
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
run: |
npm ci
npm run releaseDistTestDebug
- name: Run tauri unit tests
uses: nick-fields/retry@v3
id: linuxRunUnit
continue-on-error: true
with:
timeout_minutes: 12
max_attempts: 3
command: xvfb-run src-electron/dist/phoenix-test-runner.appimage --run-tests=unit -q
- name: Run tauri integration tests
uses: nick-fields/retry@v3
id: linuxRunIntegration
continue-on-error: true
with:
timeout_minutes: 12
max_attempts: 3
command: xvfb-run src-electron/dist/phoenix-test-runner.appimage --run-tests=integration -q
- name: Run tauri mainview tests
uses: nick-fields/retry@v3
id: linuxRunMainview
continue-on-error: true
with:
timeout_minutes: 12
max_attempts: 3
command: xvfb-run src-electron/dist/phoenix-test-runner.appimage --run-tests=mainview -q
- name: Run tauri livepreview tests
uses: nick-fields/retry@v3
id: linuxRunLivepreview
continue-on-error: true
with:
timeout_minutes: 12
max_attempts: 3
command: xvfb-run src-electron/dist/phoenix-test-runner.appimage --run-tests=livepreview -q
- name: Run tauri LegacyInteg tests
uses: nick-fields/retry@v3
id: linuxRunLegacyInteg
continue-on-error: true
with:
timeout_minutes: 20
max_attempts: 3
command: xvfb-run src-electron/dist/phoenix-test-runner.appimage --run-tests=LegacyInteg -q
- name: Fail on test runs failed in Linux
if: steps.linuxRunUnit.outcome == 'failure' || steps.linuxRunIntegration.outcome == 'failure' || steps.linuxRunMainview.outcome == 'failure' || steps.linuxRunLivepreview.outcome == 'failure' || steps.linuxRunLegacyInteg.outcome == 'failure'
run: |
echo "Linux tests failed, marking step as failed"
echo "Failed tests:"
if [ "${{ steps.linuxRunUnit.outcome }}" == "failure" ]; then
echo "- Run tauri unit tests"
fi
if [ "${{ steps.linuxRunIntegration.outcome }}" == "failure" ]; then
echo "- Run tauri integration tests"
fi
if [ "${{ steps.linuxRunMainview.outcome }}" == "failure" ]; then
echo "- Run tauri mainview tests"
fi
if [ "${{ steps.linuxRunLivepreview.outcome }}" == "failure" ]; then
echo "- Run tauri livepreview tests"
fi
if [ "${{ steps.linuxRunLegacyInteg.outcome }}" == "failure" ]; then
echo "- Run tauri LegacyInteg tests"
fi
exit 1