---
name: Validate
on:
  pull_request:
  push:
jobs:
  tests:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v6
      - uses: cachix/install-nix-action@v31
        with:
          github_access_token: ${{ secrets.GITHUB_TOKEN }}
      - uses: cachix/cachix-action@v16
        with:
          name: nix-community
      - uses: Swatinem/rust-cache@v2
        with:
          shared-key: build
      - run: nix develop --command just ci
