From f17f23bd9fc126055eaa513eda44ae60c35a0150 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Tue, 6 Feb 2024 22:07:18 +0100 Subject: [PATCH] ci: Make stack build fail when lock file is out of date When updating stack.yaml, we need to make sure to update stack.yaml.lock, too. This check prevents them from getting out of sync by failing CI in this case. This improves cachability. --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d5d0d2a8f..c4b46b17f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -222,7 +222,7 @@ jobs: if: ${{ matrix.deps }} run: ${{ matrix.deps }} - name: Build with Stack - run: stack build --local-bin-path result --copy-bins + run: stack build --lock-file error-on-write --local-bin-path result --copy-bins - name: Strip Executable run: strip result/postgrest* - name: Save built executable as artifact