diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 0000000..57dfcac --- /dev/null +++ b/.github/workflows/check.yml @@ -0,0 +1,28 @@ +name: Validate Nix Flake + +on: + workflow_dispatch: + push: + paths: + - '**.nix' + - '**.lock' + - '.github/workflows/check.yml' + +jobs: + check-flake: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + token: ${{ secrets.GITHUB_TOKEN }} + fetch-depth: 1 + + - name: Install Nix + uses: DeterminateSystems/nix-installer-action@main + with: + logger: pretty + + - name: Check Flake + run: nix flake check --accept-flake-config