chore(deps): update dependencies #386
This file contains hidden or 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: 'Test on pull request' | |
| on: [pull_request] | |
| jobs: | |
| test-tauri: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| platform: [macos-15, ubuntu-22.04, windows-latest] | |
| runs-on: ${{ matrix.platform }} | |
| timeout-minutes: 60 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: setup node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24 | |
| - name: install Rust stable | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: 1.85.1 | |
| - name: install dependencies (ubuntu only) | |
| if: matrix.platform == 'ubuntu-22.04' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf | |
| sudo apt-get install xvfb | |
| - name: install frontend dependencies | |
| run: | | |
| npm install | |
| echo "npm run build not executed as we will be running tests against the checked in release artifacts only!" | |
| npm run _copy-dist-to-test | |
| npm run tauri build | |
| - name: Run tauri integration tests in ubuntu | |
| if: matrix.platform == 'ubuntu-22.04' | |
| run: xvfb-run ./src-tauri/target/release/phoenix-file-system -q | |
| - name: Run tauri integration tests in macos | |
| if: matrix.platform == 'macos-15' | |
| run: ./src-tauri/target/release/Phoenix\ File\ system -q | |
| - name: Run tauri integration tests in windows | |
| # GUI apps in windows doesn't log on console. so we capture the output to a text file and print it, then fail on error. | |
| if: matrix.platform == 'windows-latest' | |
| id: windowsRun | |
| run: | | |
| "src-tauri\target\release\Phoenix File system.exe" -q > output.txt 2>&1 | |
| shell: cmd | |
| continue-on-error: true | |
| - name: Print windows integration test output to console | |
| if: matrix.platform == 'windows-latest' | |
| run: | | |
| type output.txt | |
| shell: cmd | |
| - name: Fail on test runs failed in windows | |
| if: matrix.platform == 'windows-latest' && steps.windowsRun.outcome == 'failure' | |
| run: | | |
| echo "Windows tests failed, marking step as failed" | |
| exit 1 | |
| shell: cmd | |
| # Electron tests are only tested for Linux for now | |
| test-electron: | |
| runs-on: ubuntu-22.04 | |
| timeout-minutes: 60 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: setup node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24 | |
| - name: install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y xvfb | |
| - name: install frontend dependencies | |
| run: | | |
| npm install | |
| echo "npm run build not executed as we will be running tests against the checked in release artifacts only!" | |
| npm run _copy-dist-to-test | |
| - name: Run electron integration tests | |
| run: | | |
| npm run _serve-tauri & | |
| sleep 2 | |
| xvfb-run ./src-electron/node_modules/.bin/electron src-electron/main.js --quit-when-done | |
| # - name: Run electron integration tests in macos | |
| # if: matrix.platform == 'macos-15' | |
| # run: | | |
| # npm run _serve-tauri & | |
| # sleep 2 | |
| # ./src-electron/node_modules/.bin/electron src-electron/main.js --quit-when-done | |
| # - name: Run electron integration tests in windows | |
| # if: matrix.platform == 'windows-latest' | |
| # id: windowsElectronRun | |
| # run: | | |
| # Start-Process -NoNewWindow -FilePath "npm" -ArgumentList "run", "_serve-tauri" | |
| # Start-Sleep -Seconds 2 | |
| # & ".\src-electron\node_modules\.bin\electron.cmd" "src-electron\main.js" "--quit-when-done" 2>&1 | Tee-Object -FilePath electron-output.txt | |
| # shell: pwsh | |
| # continue-on-error: true | |
| # - name: Print windows electron test output to console | |
| # if: matrix.platform == 'windows-latest' | |
| # run: | | |
| # type electron-output.txt | |
| # shell: cmd | |
| # - name: Fail on electron test runs failed in windows | |
| # if: matrix.platform == 'windows-latest' && steps.windowsElectronRun.outcome == 'failure' | |
| # run: | | |
| # echo "Windows Electron tests failed, marking step as failed" | |
| # exit 1 | |
| # shell: cmd |