From cdda86f9f19879775ce2074c030ebe8a3cf55187 Mon Sep 17 00:00:00 2001 From: John Ky Date: Mon, 23 Jan 2023 23:40:51 -0800 Subject: [PATCH] Include list for stylish-haskell checking --- .github/workflows/stylish-haskell.yml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/stylish-haskell.yml b/.github/workflows/stylish-haskell.yml index 0d1271f5d4c..d547d6d90bf 100644 --- a/.github/workflows/stylish-haskell.yml +++ b/.github/workflows/stylish-haskell.yml @@ -17,6 +17,21 @@ jobs: STYLISH_HASKELL_VERSION: "0.14.4.0" + STYLISH_HASKELL_PATHS: > + cardano-testnet + cardano-git-rev + cardano-api + cardano-node + cardano-client-demo + cardano-node-chairman + cardano-tracer + trace-resources + cardano-node-capi + trace-dispatcher + trace-forward + cardano-cli + cardano-submit-api + steps: - name: Install Haskell uses: input-output-hk/setup-haskell@v1 @@ -101,7 +116,7 @@ jobs: git add . git stash - for x in $(git ls-tree --full-tree --name-only -r HEAD); do + for x in $(git ls-tree --full-tree --name-only -r HEAD ${{ env.STYLISH_HASKELL_PATHS }}); do if [ "${x##*.}" == "hs" ]; then stylish-haskell -i $x fi @@ -114,7 +129,7 @@ jobs: git add . git stash git fetch origin master --unshallow - for x in $(git diff --name-only HEAD origin/master); do + for x in $(git diff --name-only HEAD origin/master ${{ env.STYLISH_HASKELL_PATHS }}); do if [ "${x##*.}" == "hs" ]; then stylish-haskell -i $x fi