From 0445baf8f5d396d95778c37b2a73ed408c975342 Mon Sep 17 00:00:00 2001 From: Nikolay Yakimov Date: Tue, 5 Mar 2024 09:16:07 +0300 Subject: [PATCH] Makefile action to run tests via nix --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 895c3b69..776ec862 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: build pin push +.PHONY: build pin push test build: nix build . .#static .#win .#pandoc $(NIX_EXTRA_OPTS) @@ -12,6 +12,9 @@ push: | jq -r '.[].outputs | to_entries[].value' \ | cachix push pandoc-crossref +test: + nix run .#test && nix run .#test-integrative + cabal.project.freeze: cabal freeze --constraint pandoc==$$(yq '.env.PANDOC_VERSION' .github/workflows/haskell.yml)