From 90d566f517fa5a02c9a5034e740bb60451c4f33f Mon Sep 17 00:00:00 2001 From: Luc Perkins Date: Wed, 24 Jul 2024 13:18:01 -0700 Subject: [PATCH] Add CI check ensuring no flake.lock file is committed --- .github/workflows/ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4ede0e8..ab76414 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,6 +14,12 @@ jobs: - uses: "actions/checkout@v4" - uses: "DeterminateSystems/nix-installer-action@main" - uses: "DeterminateSystems/magic-nix-cache-action@main" + - name: Ensure no flake.lock is committed + run: | + if [ -f flake.lock ]; then + echo "flake.lock found, failing the workflow" + exit 1 + fi - name: Check formatting if: success() || failure() run: |