Move hlint run into a separate CI workflow. #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .github/workflows/hlint.yml | |
name: HLint | |
on: | |
- push | |
- pull_request | |
jobs: | |
hlint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: 'Set up HLint' | |
uses: haskell-actions/hlint-setup@v2 | |
with: | |
version: '3.8' | |
- name: 'Run HLint (src)' | |
uses: haskell-actions/hlint-run@v2 | |
with: | |
path: src/ | |
fail-on: suggestion | |
- name: 'Run HLint (test)' | |
uses: haskell-actions/hlint-run@v2 | |
with: | |
path: test/ | |
fail-on: suggestion |