ci: Add hlint workflow

The "haskell/actions/hlint-run" GitHub Action produces annotations which
GitHub shows in the code diff, in addition to just failing the workflow
when there are any suggestions. Also, now it runs in parallel to the
other workflows.

Related: https://github.com/xmonad/xmonad-contrib/issues/669
Related: dd26fcc3f1
This commit is contained in:
Tomas Janousek 2022-10-30 20:22:35 +00:00
parent a2259bb309
commit 262dc4779f

22
.github/workflows/hlint.yaml vendored Normal file
View File

@ -0,0 +1,22 @@
name: hlint
on:
push:
pull_request:
jobs:
hlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: 'Set up HLint'
uses: haskell/actions/hlint-setup@v2
with:
version: '3.4.1'
- name: 'Run HLint'
uses: haskell/actions/hlint-run@v2
with:
path: '.'
fail-on: status