chore: improve packaging reliability and code quality #121
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: [push, pull_request] | |
| jobs: | |
| gate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - run: bun install --frozen-lockfile | |
| - name: Lint | |
| run: bun run lint | |
| - name: Format check | |
| run: bun run format:check | |
| - name: svelte-check | |
| run: bunx svelte-check --tsconfig ./tsconfig.json | |
| - name: Tests | |
| run: | | |
| bun run test:stack-targeting | |
| bun run test:highlight | |
| bun run test:save-race | |
| bun run test:app-flow | |
| - name: Build | |
| run: bun run build | |
| rust: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Linux build dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| libwebkit2gtk-4.1-dev \ | |
| libgtk-3-dev \ | |
| librsvg2-dev \ | |
| libssl-dev \ | |
| libappindicator3-dev \ | |
| patchelf | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: clippy | |
| - uses: swatinem/rust-cache@v2 | |
| with: | |
| workspaces: ./src-tauri -> target | |
| - name: cargo check | |
| working-directory: src-tauri | |
| run: cargo check --all-targets | |
| - name: cargo clippy | |
| working-directory: src-tauri | |
| run: cargo clippy --all-targets -- -D warnings |