chore: replace prettier with biome (#135) #238
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: Quality | |
| on: | |
| workflow_call: | |
| pull_request: | |
| branches: [main] | |
| push: | |
| branches: [main] | |
| jobs: | |
| changes: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| rust: ${{ steps.filter.outputs.rust }} | |
| site: ${{ steps.filter.outputs.site }} | |
| infra: ${{ steps.filter.outputs.infra }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dorny/paths-filter@v3 | |
| id: filter | |
| with: | |
| filters: | | |
| rust: | |
| - 'src/**' | |
| - 'Cargo.toml' | |
| - 'Cargo.lock' | |
| - 'rust-toolchain.toml' | |
| - 'rustfmt.toml' | |
| site: | |
| - 'site/**' | |
| infra: | |
| - 'justfile' | |
| - 'flake.nix' | |
| - 'flake.lock' | |
| - '.github/workflows/**' | |
| fmt: | |
| name: Rust Format Check | |
| needs: changes | |
| if: | |
| needs.changes.outputs.rust == 'true' || needs.changes.outputs.infra == | |
| 'true' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: cachix/install-nix-action@v31 | |
| - run: nix develop .#ci --command just rust-format | |
| clippy: | |
| name: Rust Lint Check | |
| needs: changes | |
| if: | |
| needs.changes.outputs.rust == 'true' || needs.changes.outputs.infra == | |
| 'true' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: cachix/install-nix-action@v31 | |
| - run: nix develop .#ci --command just rust-lint | |
| flake-check: | |
| name: Nix Flake Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: cachix/install-nix-action@v31 | |
| - run: nix develop .#ci --command just flake-check | |
| site-check: | |
| name: Astro Type Check | |
| needs: changes | |
| if: | |
| needs.changes.outputs.site == 'true' || needs.changes.outputs.infra == | |
| 'true' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: cachix/install-nix-action@v31 | |
| - run: nix develop .#ci --command just site-check | |
| site-format: | |
| name: Site Format Check | |
| needs: changes | |
| if: | |
| needs.changes.outputs.site == 'true' || needs.changes.outputs.infra == | |
| 'true' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: cachix/install-nix-action@v31 | |
| - run: nix develop .#ci --command just site-format |