Skip to content

Commit

Permalink
Include list for stylish-haskell checking
Browse files Browse the repository at this point in the history
  • Loading branch information
newhoggy committed Jan 24, 2023
1 parent 515f11b commit cdda86f
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/stylish-haskell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit cdda86f

Please sign in to comment.