Add project group coordination and workspace threads #552
Workflow file for this run
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: CI | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| jobs: | |
| desktop: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| env: | |
| CARGO_HTTP_TIMEOUT: "120" | |
| CARGO_NET_RETRY: "10" | |
| CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22" | |
| cache: npm | |
| cache-dependency-path: package-lock.json | |
| - name: Install frontend dependencies | |
| run: npm ci | |
| - name: Run desktop tests | |
| shell: bash | |
| run: | | |
| set +e | |
| npm test > test-output.log 2>&1 | |
| status=$? | |
| tail -n 200 test-output.log | |
| exit "$status" | |
| - name: Upload failed desktop test log | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: desktop-test-output | |
| path: test-output.log | |
| retention-days: 3 | |
| - name: Build desktop frontend | |
| run: npm run build | |
| - name: Set up Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Install Tauri Linux dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| pkg-config \ | |
| libglib2.0-dev \ | |
| libwebkit2gtk-4.1-dev \ | |
| libjavascriptcoregtk-4.1-dev \ | |
| libsoup-3.0-dev \ | |
| libgtk-3-dev \ | |
| libayatana-appindicator3-dev \ | |
| librsvg2-dev \ | |
| patchelf | |
| - name: Fetch Rust dependencies | |
| working-directory: src-tauri | |
| shell: bash | |
| run: | | |
| for attempt in 1 2 3; do | |
| if cargo fetch; then | |
| exit 0 | |
| fi | |
| sleep $((attempt * 10)) | |
| done | |
| cargo fetch | |
| - name: Run Rust tests | |
| working-directory: src-tauri | |
| run: cargo test --lib -- --test-threads=1 |