Merge pull request #25 from aguung/security/env-isolation-run-command #31
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: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| frontend: | |
| name: Frontend (TypeScript) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| - name: Install dependencies | |
| run: bun install | |
| - name: Type check | |
| run: bunx tsc --noEmit | |
| - name: Lint | |
| run: bun lint 2>/dev/null || echo "No lint script" | |
| - name: Build | |
| run: bun run build | |
| backend: | |
| name: Backend (Rust) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install system deps | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Cache cargo registry | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| workspaces: src-tauri | |
| - name: Clippy (deny warnings) | |
| run: cd src-tauri && cargo clippy -- -D warnings | |
| - name: Tests | |
| run: cd src-tauri && cargo test | |
| - name: Build check | |
| run: cd src-tauri && cargo check |