fix: Update test workflow to run on feature branches #1
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 Build | |
| on: | |
| pull_request: | |
| branches: [ main ] | |
| push: | |
| branches: [ main, 'fix/*', 'feature/*' ] | |
| jobs: | |
| test-build: | |
| strategy: | |
| matrix: | |
| platform: [ubuntu-20.04, windows-latest, macos-latest] | |
| runs-on: ${{ matrix.platform }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '18' | |
| cache: 'npm' | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Install dependencies (Ubuntu only) | |
| if: matrix.platform == 'ubuntu-20.04' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf | |
| - name: Install npm dependencies | |
| run: npm ci | |
| - name: Build Tauri app | |
| run: npm run tauri build | |
| - name: Test basic functionality | |
| run: | | |
| echo "Build completed successfully for ${{ matrix.platform }}" | |
| # Could add more specific tests here |