From 50ce416e2e3afcc074a49e037db35ffcd36f1e6d Mon Sep 17 00:00:00 2001 From: Mann mit Hut Date: Tue, 16 Jul 2024 15:14:26 +0200 Subject: [PATCH] One job per linter --- .github/workflows/linters.yml | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml index 088a55e..0ce8800 100644 --- a/.github/workflows/linters.yml +++ b/.github/workflows/linters.yml @@ -3,7 +3,7 @@ on: - push - pull_request jobs: - hlint: + cabal-gild: runs-on: ubuntu-latest steps: @@ -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