2019-09-13 08:04:58 +02:00
|
|
|
name: Haskell CI
|
|
|
|
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2019-09-13 08:19:15 +02:00
|
|
|
|
2019-09-13 08:04:58 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
2019-09-13 08:29:35 +02:00
|
|
|
- name: Install recent cabal/ghc
|
2019-09-13 18:24:14 +02:00
|
|
|
run: |
|
|
|
|
sudo add-apt-repository ppa:hvr/ghc
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install ghc-8.6.4 cabal-install-2.4
|
|
|
|
- name: Set path to include new ghc and cabal
|
|
|
|
export PATH=/opt/cabal/bin:/opt/ghc/bin:$PATH
|
2019-09-13 08:04:58 +02:00
|
|
|
- name: Install dependencies
|
2019-09-13 18:24:14 +02:00
|
|
|
run: |
|
|
|
|
cabal v2-update
|
|
|
|
cabal v2-build --dependencies-only --enable-tests
|
2019-09-13 08:29:35 +02:00
|
|
|
- name: Build
|
2019-09-13 08:04:58 +02:00
|
|
|
run: |
|
2019-09-13 18:24:14 +02:00
|
|
|
cabal v2-build --enable-tests
|
2019-09-13 08:29:35 +02:00
|
|
|
- name: Run tests
|
2019-09-13 18:24:14 +02:00
|
|
|
run: |
|
|
|
|
cabal v2-test
|