Add HLint action.
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
name: HLint CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: hlint
|
||||
runs-on: ubuntu-16.04
|
||||
strategy:
|
||||
matrix:
|
||||
ghc: ["8.8.1"]
|
||||
cabal: ["3.0"]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: actions/setup-haskell@v1
|
||||
name: Setup Haskell
|
||||
with:
|
||||
ghc-version: ${{ matrix.ghc }}
|
||||
cabal-version: ${{ matrix.cabal }}
|
||||
|
||||
- name: Install hlint
|
||||
run: |
|
||||
cabal new-install hlint
|
||||
- name: Run hlint
|
||||
run: |
|
||||
hlint -g
|
||||
Reference in New Issue
Block a user