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.
This commit is contained in:
Wolfgang Walther
2024-02-10 20:16:22 +01:00
parent fd1efa4635
commit f17f23bd9f
+1 -1
View File
@@ -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