2019-10-29 16:41:52 +00:00
|
|
|
name: Haskell CI
|
|
|
|
|
|
|
|
on: [pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: ghc ${{ matrix.ghc }}
|
|
|
|
runs-on: ubuntu-16.04
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2020-07-13 15:11:42 +00:00
|
|
|
ghc: ["8.2.2", "8.4.4", "8.6.5", "8.8.3"]
|
2020-07-13 15:11:33 +00:00
|
|
|
cabal: ["latest"]
|
2019-10-29 16:41:52 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@master
|
|
|
|
if: github.event.action == 'opened' || github.event.action == 'synchronize'
|
|
|
|
|
|
|
|
- uses: actions/setup-haskell@v1
|
|
|
|
name: Setup Haskell
|
|
|
|
with:
|
|
|
|
ghc-version: ${{ matrix.ghc }}
|
|
|
|
cabal-version: ${{ matrix.cabal }}
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
cabal v2-update
|
2019-10-31 20:00:58 +00:00
|
|
|
cabal v2-configure --enable-tests --write-ghc-environment-files=always -j2
|
2019-10-29 16:41:52 +00:00
|
|
|
cabal v2-build --only-dependencies
|
|
|
|
|
|
|
|
- name: Build & test
|
|
|
|
run: |
|
|
|
|
cabal v2-build
|
2019-10-31 20:00:58 +00:00
|
|
|
cabal v2-test
|
2019-10-29 16:41:52 +00:00
|
|
|
cabal v2-haddock
|
|
|
|
cabal v2-sdist
|
|
|
|
cabal check
|