pandoc/.github/workflows/lint.yml
Albert Krewinkel 527346cc7e
Lint code in PRs and when committing to master (#6790)
* Remove unused LANGUAGE pragmata

* Apply HLint suggestions

* Configure HLint to ignore some warnings

* Lint code when committing to master
2020-11-07 10:38:03 -08:00

30 lines
590 B
YAML

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
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
- name: Download and run hlint
run: |
curl -sSL "${hlint_script}" | sh -s .