ci: add integ test run on pull requests/push to staging/prod #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'Desktop-Linux full test suite run on pull request' | |
on: [pull_request] | |
concurrency: | |
group: pr-desktop-linux-${{ github.event.pull_request.number }} | |
cancel-in-progress: true | |
jobs: | |
test-desktop-linux: | |
runs-on: ubuntu-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: 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: 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: 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@v2 | |
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@v2 | |
with: | |
timeout_minutes: 12 | |
max_attempts: 3 | |
command: xvfb-run ./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: xvfb-run ./src-tauri/target/debug/phoenix-test --run-tests=LegacyInteg -q |