From c678162e208bf3342471accf8024d67fe563ea79 Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Sun, 7 Nov 2021 09:14:03 +0100 Subject: [PATCH] ci: error out if code contains `literalExample` --- .github/workflows/test.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4608d481..e7ffff6e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -19,6 +19,11 @@ jobs: with: name: nix-community signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}' + - run: | + if grep -R --exclude stdlib-extended.nix literalExample modules ; then + echo "Error: literalExample should be replaced by literalExpression" > /dev/stderr + exit 1 + fi - run: ./format -c - run: nix-shell . -A install - run: nix-shell --arg enableBig false --pure tests -A run.all