Skip to content

chore: replace prettier with biome (#135) #238

chore: replace prettier with biome (#135)

chore: replace prettier with biome (#135) #238

Workflow file for this run

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