Skip to content

Commit

Permalink
feat: add tauri macos integration test run on pull request
Browse files Browse the repository at this point in the history
  • Loading branch information
abose committed Oct 15, 2023
1 parent 6fbf6a9 commit 0000fe7
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: 'Tauri-Linux full test suite run on pull request'
name: 'Desktop-Linux full test suite run on pull request'
on: [pull_request]

jobs:
test-tauri-linux:
test-desktop-linux:
runs-on: ubuntu-latest
timeout-minutes: 90
steps:
Expand All @@ -13,12 +13,6 @@ jobs:
node-version: 18
- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
- name: install dependencies (ubuntu only)
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
sudo apt install build-essential curl wget file libssl-dev libayatana-appindicator3-dev
sudo apt-get install xvfb

- name: build phoenix dist-test
run: |
Expand Down
57 changes: 57 additions & 0 deletions .github/workflows/desktop-mac-test-pull.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: 'Desktop-mac full test suite run on pull request'
on: [pull_request]

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

- name: build phoenix dist-test
run: |
npm ci
npm run build
npm run release:dev
- name: Download phoenix desktop and build test runner
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
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
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
with:
timeout_minutes: 12
max_attempts: 3
command: ../phoenix-desktop/src-tauri/target/debug/phoenix-test --run-tests=mainview -q

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

0 comments on commit 0000fe7

Please sign in to comment.