2020-11-07 19:38:03 +01:00
|
|
|
name: Lint
|
|
|
|
|
|
|
|
# Trigger the workflow on push or pull request, but only for the
|
|
|
|
# master branch
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branch: [master]
|
|
|
|
push:
|
|
|
|
branch: [master]
|
|
|
|
paths-ignore:
|
|
|
|
- LICENSE
|
|
|
|
- README.md
|
|
|
|
- CHANGELOG.md
|
|
|
|
- stack.yaml
|
|
|
|
- .travis.yml
|
|
|
|
|
2022-03-24 11:32:57 -05:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2020-11-07 19:38:03 +01:00
|
|
|
jobs:
|
|
|
|
lint:
|
|
|
|
name: Lint
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
|
|
hlint_script: https://raw.github.com/ndmitchell/hlint/master/misc/run.sh
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
2020-12-18 09:55:34 -08:00
|
|
|
- name: Check cabal file for missing test files
|
2020-12-18 12:04:24 -08:00
|
|
|
run: make check-cabal
|
2020-12-18 09:55:34 -08:00
|
|
|
|
2020-11-07 19:38:03 +01:00
|
|
|
- name: Download and run hlint
|
|
|
|
run: |
|
2021-09-20 21:58:30 -07:00
|
|
|
curl -sSL "${hlint_script}" | sh -s src app test
|