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
3 changes: 3 additions & 0 deletions .github/workflows/create-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ jobs:
run: |
npm ci
- name: Verifying release artifact build
env:
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
run: |
npm run release:prod
- name: Deploy Notification To authoring production repository create.phcode.dev
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/desktop-linux-prod-test-pull.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: 'Desktop-Linux prod release full test suite run on pull request'
# we only do this on linux as a sanity. detailed tests will be run on pulls on staging/prod branch
on:
pull_request:
branches: [ main ]
Expand Down Expand Up @@ -31,6 +30,9 @@ jobs:
sudo apt-get install xvfb

- name: build phoenix dist-test
env:
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
run: |
npm ci
npm run build
Expand All @@ -39,6 +41,8 @@ jobs:
- name: Download phoenix desktop and 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: |
cd ..
git clone https://github.com/phcode-dev/phoenix-desktop.git
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/desktop-linux-test-pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ jobs:
sudo apt-get install xvfb

- name: build phoenix dist-test
env:
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
run: |
npm ci
npm run build
Expand All @@ -38,6 +41,8 @@ jobs:
- name: Download phoenix desktop and 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: |
cd ..
git clone https://github.com/phcode-dev/phoenix-desktop.git
Expand Down
111 changes: 111 additions & 0 deletions .github/workflows/desktop-mac-m1-prod-test-pull.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
name: 'Desktop-mac M1 prod release full test suite run on pull request'
on:
pull_request:
branches: [ main ]

concurrency:
group: pr-desktop-mac-m1-prod-${{ github.event.pull_request.number }}
cancel-in-progress: true

jobs:
test-desktop-mac-m1-prod:
runs-on: macos-15
timeout-minutes: 90
steps:
- uses: actions/checkout@v3
- name: setup node
uses: actions/setup-node@v3
with:
node-version: 20
- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.85.1

- name: build phoenix dist-test
env:
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
run: |
npm ci
npm run build
npm run release:prod

- name: Download phoenix desktop and 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: |
cd ..
git clone https://github.com/phcode-dev/phoenix-desktop.git
cd phoenix-desktop
npm ci
npm run releaseDistTestDebug

- name: Run tauri unit tests
uses: nick-fields/retry@v2
id: macM1RunUnit
continue-on-error: true
with:
timeout_minutes: 12
max_attempts: 3
command: ../phoenix-desktop/src-tauri/target/debug/phoenix-test --run-tests=unit -q

- name: Run tauri integration tests
uses: nick-fields/retry@v2
id: macM1RunIntegration
continue-on-error: true
with:
timeout_minutes: 12
max_attempts: 3
command: ../phoenix-desktop/src-tauri/target/debug/phoenix-test --run-tests=integration -q

- name: Run tauri mainview tests
uses: nick-fields/retry@v2
id: macM1RunMainview
continue-on-error: true
with:
timeout_minutes: 12
max_attempts: 3
command: ../phoenix-desktop/src-tauri/target/debug/phoenix-test --run-tests=mainview -q

- name: Run tauri livepreview tests
uses: nick-fields/retry@v2
id: macM1RunLivepreview
continue-on-error: true
with:
timeout_minutes: 12
max_attempts: 3
command: ../phoenix-desktop/src-tauri/target/debug/phoenix-test --run-tests=livepreview -q

- name: Run tauri LegacyInteg tests
uses: nick-fields/retry@v2
id: macM1RunLegacyInteg
continue-on-error: true
with:
timeout_minutes: 20
max_attempts: 3
command: ../phoenix-desktop/src-tauri/target/debug/phoenix-test --run-tests=LegacyInteg -q

- name: Fail on test runs failed in Mac M1 (prod)
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 (prod) 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
7 changes: 6 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@v3
Expand All @@ -23,6 +23,9 @@ jobs:
toolchain: 1.85.1

- name: build phoenix dist-test
env:
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
run: |
npm ci
npm run build
Expand All @@ -31,6 +34,8 @@ jobs:
- name: Download phoenix desktop and 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: |
cd ..
git clone https://github.com/phcode-dev/phoenix-desktop.git
Expand Down
7 changes: 6 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@v3
Expand All @@ -23,6 +23,9 @@ jobs:
toolchain: 1.85.1

- name: build phoenix dist-test
env:
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
run: |
npm ci
npm run build
Expand All @@ -31,6 +34,8 @@ jobs:
- name: Download phoenix desktop and 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: |
cd ..
git clone https://github.com/phcode-dev/phoenix-desktop.git
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/desktop-windows-test-pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:
toolchain: 1.85.1

- name: build phoenix dist-test
env:
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
run: |
npm ci
npm run build
Expand All @@ -31,6 +34,8 @@ jobs:
- name: Download phoenix desktop and 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: |
cd ..
git clone https://github.com/phcode-dev/phoenix-desktop.git
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/dev-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ jobs:
run: |
npm ci
- name: Verifying release artifact build
env:
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
run: |
npm run release:dev
- name: Deploy Notification To dev.phcode.dev repository
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/playwright-chromium-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Build phoenix
env:
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
run: npm run build
- name: Install Playwright Browsers
run: npx playwright install --with-deps
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/playwright-chromium-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Build phoenix
env:
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
run: npm run build
- name: Install Playwright Browsers
run: npx playwright install --with-deps
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/playwright-chromium-windows-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Build phoenix
env:
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
run: |
npm run build
npm run release:prod
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/playwright-chromium-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Build phoenix
env:
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
run: npm run build
- name: Install Playwright Browsers
run: npx playwright install --with-deps
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/playwright-firefox-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Build phoenix
env:
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
run: npm run build
- name: Install Playwright Browsers
run: npx playwright install --with-deps
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/playwright-firefox-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Build phoenix
env:
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
run: npm run build
- name: Install Playwright Browsers
run: npx playwright install --with-deps
Expand Down
22 changes: 20 additions & 2 deletions .github/workflows/playwright-staging-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Build phoenix
env:
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
run: |
npm run build
npm run release:prod
Expand Down Expand Up @@ -102,6 +105,9 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Build phoenix
env:
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
run: |
npm run build
npm run release:prod
Expand Down Expand Up @@ -178,7 +184,7 @@ jobs:

playwrightChromiumMacos:
timeout-minutes: 90
runs-on: macos-14
runs-on: macos-15
steps:
- uses: actions/checkout@v3
- name: setup node
Expand All @@ -188,6 +194,9 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Build phoenix
env:
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
run: |
npm run build
npm run release:prod
Expand Down Expand Up @@ -273,6 +282,9 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Build phoenix
env:
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
run: |
npm run build
npm run release:prod
Expand Down Expand Up @@ -358,6 +370,9 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Build phoenix
env:
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
run: |
npm run build
npm run release:prod
Expand Down Expand Up @@ -434,7 +449,7 @@ jobs:

playwrightFirefoxMacos:
timeout-minutes: 90
runs-on: macos-14
runs-on: macos-15
steps:
- uses: actions/checkout@v3
- name: setup node
Expand All @@ -444,6 +459,9 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Build phoenix
env:
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
run: |
npm run build
npm run release:prod
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/prod-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ jobs:
run: |
npm ci
- name: Verifying release artifact build
env:
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
run: |
npm run release:prod
- name: Deploy Notification To production repository phcode.dev
Expand Down
Loading
Loading