Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/desktop-linux-test-pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ jobs:
- 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 ..
Expand All @@ -48,41 +50,75 @@ jobs:
- 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-tauri/target/debug/phoenix-test --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-tauri/target/debug/phoenix-test --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-tauri/target/debug/phoenix-test --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-tauri/target/debug/phoenix-test --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-tauri/target/debug/phoenix-test --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
38 changes: 37 additions & 1 deletion .github/workflows/desktop-mac-m1-test-pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ concurrency:

jobs:
test-desktop-mac-m1:
runs-on: macos-14
runs-on: macos-15
timeout-minutes: 90
steps:
- uses: actions/checkout@v4
Expand All @@ -32,6 +32,8 @@ jobs:
- 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 ..
Expand All @@ -43,41 +45,75 @@ jobs:
- 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: macM1RunUnit
continue-on-error: true
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
id: macM1RunIntegration
continue-on-error: true
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
id: macM1RunMainview
continue-on-error: true
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
id: macM1RunLivepreview
continue-on-error: true
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
id: macM1RunLegacyInteg
continue-on-error: true
with:
timeout_minutes: 30
max_attempts: 3
command: ./src-tauri/target/debug/phoenix-test --run-tests=LegacyInteg -q

- name: Fail on test runs failed in Mac M1
if: steps.macM1RunUnit.outcome == 'failure' || steps.macM1RunIntegration.outcome == 'failure' || steps.macM1RunMainview.outcome == 'failure' || steps.macM1RunLivepreview.outcome == 'failure' || steps.macM1RunLegacyInteg.outcome == 'failure'
run: |
echo "Mac M1 tests failed, marking step as failed"
echo "Failed tests:"
if [ "${{ steps.macM1RunUnit.outcome }}" == "failure" ]; then
echo "- Run tauri unit tests"
fi
if [ "${{ steps.macM1RunIntegration.outcome }}" == "failure" ]; then
echo "- Run tauri integration tests"
fi
if [ "${{ steps.macM1RunMainview.outcome }}" == "failure" ]; then
echo "- Run tauri mainview tests"
fi
if [ "${{ steps.macM1RunLivepreview.outcome }}" == "failure" ]; then
echo "- Run tauri livepreview tests"
fi
if [ "${{ steps.macM1RunLegacyInteg.outcome }}" == "failure" ]; then
echo "- Run tauri LegacyInteg tests"
fi
exit 1
38 changes: 37 additions & 1 deletion .github/workflows/desktop-mac-test-pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ concurrency:

jobs:
test-desktop-mac:
runs-on: macos-13
runs-on: macos-15-intel
timeout-minutes: 90
steps:
- uses: actions/checkout@v4
Expand All @@ -30,6 +30,8 @@ jobs:
- 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 ..
Expand All @@ -41,41 +43,75 @@ jobs:
- 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: macRunUnit
continue-on-error: true
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
id: macRunIntegration
continue-on-error: true
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
id: macRunMainview
continue-on-error: true
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
id: macRunLivepreview
continue-on-error: true
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
id: macRunLegacyInteg
continue-on-error: true
with:
timeout_minutes: 30
max_attempts: 3
command: ./src-tauri/target/debug/phoenix-test --run-tests=LegacyInteg -q

- name: Fail on test runs failed in Mac
if: steps.macRunUnit.outcome == 'failure' || steps.macRunIntegration.outcome == 'failure' || steps.macRunMainview.outcome == 'failure' || steps.macRunLivepreview.outcome == 'failure' || steps.macRunLegacyInteg.outcome == 'failure'
run: |
echo "Mac tests failed, marking step as failed"
echo "Failed tests:"
if [ "${{ steps.macRunUnit.outcome }}" == "failure" ]; then
echo "- Run tauri unit tests"
fi
if [ "${{ steps.macRunIntegration.outcome }}" == "failure" ]; then
echo "- Run tauri integration tests"
fi
if [ "${{ steps.macRunMainview.outcome }}" == "failure" ]; then
echo "- Run tauri mainview tests"
fi
if [ "${{ steps.macRunLivepreview.outcome }}" == "failure" ]; then
echo "- Run tauri livepreview tests"
fi
if [ "${{ steps.macRunLegacyInteg.outcome }}" == "failure" ]; then
echo "- Run tauri LegacyInteg tests"
fi
exit 1
4 changes: 4 additions & 0 deletions .github/workflows/desktop-windows-test-pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ jobs:
- 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 ..
Expand All @@ -41,6 +43,8 @@ jobs:
- 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
Expand Down
Loading
Loading