Skip to content

Commit

Permalink
One job per linter
Browse files Browse the repository at this point in the history
  • Loading branch information
mmhat committed Jul 16, 2024
1 parent e29db84 commit 50ce416
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
- push
- pull_request
jobs:
hlint:
cabal-gild:
runs-on: ubuntu-latest

steps:
Expand All @@ -13,17 +13,31 @@ jobs:
- name: 'Set up cabal-gild'
uses: tfausak/cabal-gild-setup-action@v2

- name: 'Set up hlint'
uses: haskell-actions/hlint-setup@v2

- name: 'Run cabal-gild'
run: cabal-gild --mode check --input typed-process-effectful.cabal

fourmolu:
runs-on: ubuntu-latest

steps:
- name: 'Checkout repository'
uses: actions/checkout@v4

- name: 'Run fourmolu'
uses: haskell-actions/run-fourmolu@v10

hlint:
runs-on: ubuntu-latest

steps:
- name: 'Checkout repository'
uses: actions/checkout@v4

- name: 'Set up hlint'
uses: haskell-actions/hlint-setup@v2

- name: 'Run hlint'
uses: haskell-actions/hlint-run@v2
with:
path: '[ "src/", "example/", "test/" ]'
path: './'
fail-on: suggestion

0 comments on commit 50ce416

Please sign in to comment.