Skip to content

Commit 34bc1fa

Browse files
committed
chore: consolidated live rpeview changes
1 parent f036c0d commit 34bc1fa

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+2030
-6283
lines changed

.github/workflows/create-deploy.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ jobs:
1717
run: |
1818
npm ci
1919
- name: Verifying release artifact build
20+
env:
21+
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
22+
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
2023
run: |
2124
npm run release:prod
2225
- name: Deploy Notification To authoring production repository create.phcode.dev

.github/workflows/desktop-linux-prod-test-pull.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
name: 'Desktop-Linux prod release full test suite run on pull request'
2-
# we only do this on linux as a sanity. detailed tests will be run on pulls on staging/prod branch
32
on:
43
pull_request:
54
branches: [ main ]
@@ -31,6 +30,9 @@ jobs:
3130
sudo apt-get install xvfb
3231
3332
- name: build phoenix dist-test
33+
env:
34+
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
35+
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
3436
run: |
3537
npm ci
3638
npm run build
@@ -39,6 +41,8 @@ jobs:
3941
- name: Download phoenix desktop and build test runner
4042
env:
4143
GH_TOKEN: ${{ github.token }}
44+
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
45+
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
4246
run: |
4347
cd ..
4448
git clone https://github.com/phcode-dev/phoenix-desktop.git

.github/workflows/desktop-linux-test-pull.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ jobs:
3030
sudo apt-get install xvfb
3131
3232
- name: build phoenix dist-test
33+
env:
34+
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
35+
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
3336
run: |
3437
npm ci
3538
npm run build
@@ -38,6 +41,8 @@ jobs:
3841
- name: Download phoenix desktop and build test runner
3942
env:
4043
GH_TOKEN: ${{ github.token }}
44+
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
45+
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
4146
run: |
4247
cd ..
4348
git clone https://github.com/phcode-dev/phoenix-desktop.git
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
name: 'Desktop-mac M1 prod release full test suite run on pull request'
2+
on:
3+
pull_request:
4+
branches: [ main ]
5+
6+
concurrency:
7+
group: pr-desktop-mac-m1-prod-${{ github.event.pull_request.number }}
8+
cancel-in-progress: true
9+
10+
jobs:
11+
test-desktop-mac-m1-prod:
12+
runs-on: macos-15
13+
timeout-minutes: 90
14+
steps:
15+
- uses: actions/checkout@v3
16+
- name: setup node
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: 20
20+
- name: install Rust stable
21+
uses: dtolnay/rust-toolchain@stable
22+
with:
23+
toolchain: 1.85.1
24+
25+
- name: build phoenix dist-test
26+
env:
27+
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
28+
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
29+
run: |
30+
npm ci
31+
npm run build
32+
npm run release:prod
33+
34+
- name: Download phoenix desktop and build test runner
35+
env:
36+
GH_TOKEN: ${{ github.token }}
37+
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
38+
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
39+
run: |
40+
cd ..
41+
git clone https://github.com/phcode-dev/phoenix-desktop.git
42+
cd phoenix-desktop
43+
npm ci
44+
npm run releaseDistTestDebug
45+
46+
- name: Run tauri unit tests
47+
uses: nick-fields/retry@v2
48+
id: macM1RunUnit
49+
continue-on-error: true
50+
with:
51+
timeout_minutes: 12
52+
max_attempts: 3
53+
command: ../phoenix-desktop/src-tauri/target/debug/phoenix-test --run-tests=unit -q
54+
55+
- name: Run tauri integration tests
56+
uses: nick-fields/retry@v2
57+
id: macM1RunIntegration
58+
continue-on-error: true
59+
with:
60+
timeout_minutes: 12
61+
max_attempts: 3
62+
command: ../phoenix-desktop/src-tauri/target/debug/phoenix-test --run-tests=integration -q
63+
64+
- name: Run tauri mainview tests
65+
uses: nick-fields/retry@v2
66+
id: macM1RunMainview
67+
continue-on-error: true
68+
with:
69+
timeout_minutes: 12
70+
max_attempts: 3
71+
command: ../phoenix-desktop/src-tauri/target/debug/phoenix-test --run-tests=mainview -q
72+
73+
- name: Run tauri livepreview tests
74+
uses: nick-fields/retry@v2
75+
id: macM1RunLivepreview
76+
continue-on-error: true
77+
with:
78+
timeout_minutes: 12
79+
max_attempts: 3
80+
command: ../phoenix-desktop/src-tauri/target/debug/phoenix-test --run-tests=livepreview -q
81+
82+
- name: Run tauri LegacyInteg tests
83+
uses: nick-fields/retry@v2
84+
id: macM1RunLegacyInteg
85+
continue-on-error: true
86+
with:
87+
timeout_minutes: 20
88+
max_attempts: 3
89+
command: ../phoenix-desktop/src-tauri/target/debug/phoenix-test --run-tests=LegacyInteg -q
90+
91+
- name: Fail on test runs failed in Mac M1 (prod)
92+
if: steps.macM1RunUnit.outcome == 'failure' || steps.macM1RunIntegration.outcome == 'failure' || steps.macM1RunMainview.outcome == 'failure' || steps.macM1RunLivepreview.outcome == 'failure' || steps.macM1RunLegacyInteg.outcome == 'failure'
93+
run: |
94+
echo "Mac M1 (prod) tests failed, marking step as failed"
95+
echo "Failed tests:"
96+
if [ "${{ steps.macM1RunUnit.outcome }}" == "failure" ]; then
97+
echo "- Run tauri unit tests"
98+
fi
99+
if [ "${{ steps.macM1RunIntegration.outcome }}" == "failure" ]; then
100+
echo "- Run tauri integration tests"
101+
fi
102+
if [ "${{ steps.macM1RunMainview.outcome }}" == "failure" ]; then
103+
echo "- Run tauri mainview tests"
104+
fi
105+
if [ "${{ steps.macM1RunLivepreview.outcome }}" == "failure" ]; then
106+
echo "- Run tauri livepreview tests"
107+
fi
108+
if [ "${{ steps.macM1RunLegacyInteg.outcome }}" == "failure" ]; then
109+
echo "- Run tauri LegacyInteg tests"
110+
fi
111+
exit 1

.github/workflows/desktop-mac-m1-test-pull.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ concurrency:
99

1010
jobs:
1111
test-desktop-mac-m1:
12-
runs-on: macos-14
12+
runs-on: macos-15
1313
timeout-minutes: 90
1414
steps:
1515
- uses: actions/checkout@v3
@@ -23,6 +23,9 @@ jobs:
2323
toolchain: 1.85.1
2424

2525
- name: build phoenix dist-test
26+
env:
27+
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
28+
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
2629
run: |
2730
npm ci
2831
npm run build
@@ -31,6 +34,8 @@ jobs:
3134
- name: Download phoenix desktop and build test runner
3235
env:
3336
GH_TOKEN: ${{ github.token }}
37+
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
38+
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
3439
run: |
3540
cd ..
3641
git clone https://github.com/phcode-dev/phoenix-desktop.git

.github/workflows/desktop-mac-test-pull.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ concurrency:
99

1010
jobs:
1111
test-desktop-mac:
12-
runs-on: macos-13
12+
runs-on: macos-15-intel
1313
timeout-minutes: 90
1414
steps:
1515
- uses: actions/checkout@v3
@@ -23,6 +23,9 @@ jobs:
2323
toolchain: 1.85.1
2424

2525
- name: build phoenix dist-test
26+
env:
27+
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
28+
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
2629
run: |
2730
npm ci
2831
npm run build
@@ -31,6 +34,8 @@ jobs:
3134
- name: Download phoenix desktop and build test runner
3235
env:
3336
GH_TOKEN: ${{ github.token }}
37+
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
38+
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
3439
run: |
3540
cd ..
3641
git clone https://github.com/phcode-dev/phoenix-desktop.git

.github/workflows/desktop-windows-test-pull.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ jobs:
2323
toolchain: 1.85.1
2424

2525
- name: build phoenix dist-test
26+
env:
27+
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
28+
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
2629
run: |
2730
npm ci
2831
npm run build
@@ -31,6 +34,8 @@ jobs:
3134
- name: Download phoenix desktop and build test runner
3235
env:
3336
GH_TOKEN: ${{ github.token }}
37+
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
38+
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
3439
run: |
3540
cd ..
3641
git clone https://github.com/phcode-dev/phoenix-desktop.git

.github/workflows/dev-deploy.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ jobs:
1313
run: |
1414
npm ci
1515
- name: Verifying release artifact build
16+
env:
17+
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
18+
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
1619
run: |
1720
npm run release:dev
1821
- name: Deploy Notification To dev.phcode.dev repository

.github/workflows/playwright-chromium-linux.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ jobs:
2020
- name: Install dependencies
2121
run: npm ci
2222
- name: Build phoenix
23+
env:
24+
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
25+
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
2326
run: npm run build
2427
- name: Install Playwright Browsers
2528
run: npx playwright install --with-deps

.github/workflows/playwright-chromium-macos.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ jobs:
2020
- name: Install dependencies
2121
run: npm ci
2222
- name: Build phoenix
23+
env:
24+
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
25+
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
2326
run: npm run build
2427
- name: Install Playwright Browsers
2528
run: npx playwright install --with-deps

0 commit comments

Comments
 (0)