feat: daily playtime recodring #9
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: check | |
| on: | |
| pull_request: | |
| push: | |
| branches: [master] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v7 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| - name: Type check (tsc) | |
| run: bun run check | |
| - name: Unit tests (vitest) | |
| run: bun run test | |
| - name: Lint (eslint) | |
| run: bun run lint | |
| - name: Format check (prettier) | |
| run: bun run prettier | |
| - name: Build frontend | |
| run: bun run build | |
| - name: Install Tauri system dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libwebkit2gtk-4.1-dev file libxdo-dev libssl-dev libayatana-appindicator3-dev librsvg2-dev | |
| - name: Setup Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: clippy, rustfmt | |
| - name: Configure Rust dependency caching | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Tests | |
| working-directory: src-tauri | |
| run: cargo test | |
| - name: Lint (clippy) | |
| working-directory: src-tauri | |
| run: cargo clippy -- -D warnings | |
| - name: Format check (rustfmt) | |
| working-directory: src-tauri | |
| run: cargo fmt --check |