Skip to content

Commit 50ce416

Browse files
committed
One job per linter
1 parent e29db84 commit 50ce416

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

.github/workflows/linters.yml

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on:
33
- push
44
- pull_request
55
jobs:
6-
hlint:
6+
cabal-gild:
77
runs-on: ubuntu-latest
88

99
steps:
@@ -13,17 +13,31 @@ jobs:
1313
- name: 'Set up cabal-gild'
1414
uses: tfausak/cabal-gild-setup-action@v2
1515

16-
- name: 'Set up hlint'
17-
uses: haskell-actions/hlint-setup@v2
18-
1916
- name: 'Run cabal-gild'
2017
run: cabal-gild --mode check --input typed-process-effectful.cabal
2118

19+
fourmolu:
20+
runs-on: ubuntu-latest
21+
22+
steps:
23+
- name: 'Checkout repository'
24+
uses: actions/checkout@v4
25+
2226
- name: 'Run fourmolu'
2327
uses: haskell-actions/run-fourmolu@v10
2428

29+
hlint:
30+
runs-on: ubuntu-latest
31+
32+
steps:
33+
- name: 'Checkout repository'
34+
uses: actions/checkout@v4
35+
36+
- name: 'Set up hlint'
37+
uses: haskell-actions/hlint-setup@v2
38+
2539
- name: 'Run hlint'
2640
uses: haskell-actions/hlint-run@v2
2741
with:
28-
path: '[ "src/", "example/", "test/" ]'
42+
path: './'
2943
fail-on: suggestion

0 commit comments

Comments
 (0)