2019-08-06 16:37:30 -07:00
|
|
|
name: Haskell CI
|
2019-07-29 09:38:23 -07:00
|
|
|
|
2020-02-12 13:26:01 -05:00
|
|
|
on:
|
|
|
|
|
push:
|
|
|
|
|
branches: [ master ]
|
|
|
|
|
pull_request:
|
|
|
|
|
branches: [ master ]
|
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:
|
2020-02-19 21:07:29 -05:00
|
|
|
ghc-version: '8.8.2'
|
2019-10-04 05:48:05 -04:00
|
|
|
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
|