Skip to content

Commit

Permalink
Add CI check ensuring no flake.lock file is committed
Browse files Browse the repository at this point in the history
  • Loading branch information
lucperkins committed Jul 24, 2024
1 parent 21d681b commit 90d566f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit 90d566f

Please sign in to comment.