name: Run nix flake check
on:
  push:
  pull_request:

jobs:
  flake-check:
    runs-on: ubuntu-latest
    container:
      image: ghcr.io/catthehacker/ubuntu:runner-latest
    steps:
      - uses: actions/checkout@v3
      - uses: cachix/install-nix-action@v27
      - run: nix flake check