Skip to content

ci: mac m1 test runner #3

ci: mac m1 test runner

ci: mac m1 test runner #3

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-latest-large
timeout-minutes: 1
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
run: npm ci
- name: Download phoenix and build build phoenix dist-test
run: |
npm run _ci-clonePhoenixForTests
cd ..
cd phoenix
npm ci
npm run build
npm run release:dev
- name: build test runner
run: |
npm ci
npm run releaseDistTestDebug
- name: Run tauri unit tests
uses: nick-fields/retry@v2
with:
timeout_minutes: 10
max_attempts: 2
command: ./src-tauri/target/debug/phoenix-test --run-tests=unit -q
- name: Run tauri integration tests
uses: nick-fields/retry@v2
with:
timeout_minutes: 10
max_attempts: 2
command: ./src-tauri/target/debug/phoenix-test --run-tests=integration -q
- name: Run tauri mainview tests
uses: nick-fields/retry@v2
with:
timeout_minutes: 10
max_attempts: 2
command: ./src-tauri/target/debug/phoenix-test --run-tests=mainview -q
- name: Run tauri LegacyInteg tests
uses: nick-fields/retry@v2
with:
timeout_minutes: 30
max_attempts: 1
command: ./src-tauri/target/debug/phoenix-test --run-tests=LegacyInteg -q