From 826874cf03a0d68ae5e0c30b591d724bb4e3a015 Mon Sep 17 00:00:00 2001 From: William Rusnack Date: Fri, 12 Jul 2024 17:15:29 -0400 Subject: [PATCH] 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 +++++++++++ classy-prelude/classy-prelude.cabal | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) 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 diff --git a/classy-prelude/classy-prelude.cabal b/classy-prelude/classy-prelude.cabal index 38ef0d36..b727fe49 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.3 +version: 1.5.0.2 synopsis: A typeclass-based Prelude. description: See docs and README at category: Control, Prelude