From 588b84aa898b86a51dd726460ad923ca8dc7d16e Mon Sep 17 00:00:00 2001 From: William Rusnack Date: Fri, 12 Jul 2024 17:15:29 -0400 Subject: [PATCH 1/2] ci now checks for changes in source\nuseful for changing checking to ensure that package.yaml and *.cabal are synced --- .github/workflows/tests.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 94cff15b..d29141af 100755 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -68,6 +68,17 @@ jobs: ghc --version stack --version stack test --system-ghc $extraLibDirs $extraIncludeDirsLLVM $extraIncludeDirsFFI --fast --no-terminal --snapshot=lts-$snapshot + - name: Check for Source Changes + shell: bash + run: | + if [ -n "$(git status --porcelain)" ] + then + >&2 echo 'ERROR: Source Changed After Build' + >&2 git diff + >&2 git status + >&2 echo 'ERROR: Source Changed After Build' + exit 1 + fi Cabal: name: Cabal From 38774751e0562f69b133b9b54c268ba5d464d799 Mon Sep 17 00:00:00 2001 From: William Rusnack Date: Fri, 12 Jul 2024 16:32:19 -0400 Subject: [PATCH 2/2] fix classy-prelude.cabal version to match package.yaml --- classy-prelude/classy-prelude.cabal | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classy-prelude/classy-prelude.cabal b/classy-prelude/classy-prelude.cabal index b727fe49..38ef0d36 100644 --- a/classy-prelude/classy-prelude.cabal +++ b/classy-prelude/classy-prelude.cabal @@ -5,7 +5,7 @@ cabal-version: 1.12 -- see: https://github.com/sol/hpack name: classy-prelude -version: 1.5.0.2 +version: 1.5.0.3 synopsis: A typeclass-based Prelude. description: See docs and README at category: Control, Prelude