Skip to content

Commit

Permalink
Add CI for hlint
Browse files Browse the repository at this point in the history
  • Loading branch information
WoWaster committed Mar 19, 2024
1 parent fc64aab commit 78894f1
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ jobs:
pre-commit:
uses: ./.github/workflows/pre-commit.yaml

build-and-test:
hlint:
needs: pre-commit
uses: ./.github/workflows/hlint.yaml

build-and-test:
needs: hlint
uses: ./.github/workflows/build-and-test.yaml
19 changes: 19 additions & 0 deletions .github/workflows/hlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
on:
workflow_call:

jobs:
hlint:
name: Hlint
runs-on: ubuntu-latest
steps:
- name: Clone project
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: .
fail-on: warning

0 comments on commit 78894f1

Please sign in to comment.