2019-08-06 16:37:30 -07:00
|
|
|
name: Haskell CI
|
2019-07-29 09:38:23 -07:00
|
|
|
|
2019-08-06 16:37:30 -07:00
|
|
|
on: [push]
|
2019-07-29 09:38:23 -07:00
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
build:
|
2019-10-16 12:40:14 -07:00
|
|
|
|
2019-07-29 09:38:23 -07:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
2019-08-06 16:37:30 -07:00
|
|
|
steps:
|
2019-12-24 14:22:22 -08:00
|
|
|
- uses: actions/checkout@v2
|
2019-10-04 05:48:05 -04:00
|
|
|
- uses: actions/setup-haskell@v1
|
|
|
|
|
with:
|
|
|
|
|
ghc-version: '8.6.5'
|
|
|
|
|
cabal-version: '3.0'
|
2019-07-29 09:38:23 -07:00
|
|
|
- name: Install dependencies
|
2019-10-04 05:48:05 -04:00
|
|
|
run: |
|
|
|
|
|
cabal update
|
|
|
|
|
cabal install --only-dependencies --enable-tests
|
2019-07-29 09:38:23 -07:00
|
|
|
- name: Build
|
|
|
|
|
run: |
|
|
|
|
|
cabal configure --enable-tests
|
|
|
|
|
cabal build
|
|
|
|
|
- name: Run tests
|
|
|
|
|
run: cabal test
|