Skip to content

Commit 59631ff

Browse files
committed
Include list for stylish-haskell checking
1 parent 55a821f commit 59631ff

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

Diff for: .github/workflows/stylish-haskell.yml

+17-2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,21 @@ jobs:
1717

1818
STYLISH_HASKELL_VERSION: "0.14.4.0"
1919

20+
STYLISH_HASKELL_PATHS: >
21+
cardano-testnet
22+
cardano-git-rev
23+
cardano-api
24+
cardano-node
25+
cardano-client-demo
26+
cardano-node-chairman
27+
cardano-tracer
28+
trace-resources
29+
cardano-node-capi
30+
trace-dispatcher
31+
trace-forward
32+
cardano-cli
33+
cardano-submit-api
34+
2035
steps:
2136
- name: Install Haskell
2237
uses: input-output-hk/setup-haskell@v1
@@ -101,7 +116,7 @@ jobs:
101116
git add .
102117
git stash
103118
104-
for x in $(git ls-tree --full-tree --name-only -r HEAD); do
119+
for x in $(git ls-tree --full-tree --name-only -r HEAD ${{ env.STYLISH_HASKELL_PATHS }}); do
105120
if [ "${x##*.}" == "hs" ]; then
106121
stylish-haskell -i $x
107122
fi
@@ -114,7 +129,7 @@ jobs:
114129
git add .
115130
git stash
116131
git fetch origin master --unshallow
117-
for x in $(git diff --name-only HEAD origin/master); do
132+
for x in $(git diff --name-only HEAD origin/master ${{ env.STYLISH_HASKELL_PATHS }}); do
118133
if [ "${x##*.}" == "hs" ]; then
119134
stylish-haskell -i $x
120135
fi

0 commit comments

Comments
 (0)