From 2a7bb50acfca797d04a9aea1b73189ad5d73f143 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Er=C3=A8be=20-=20Romain=20Gerard?= Date: Sat, 4 Jan 2020 23:33:49 +0100 Subject: [PATCH] Update haskell.yml Former-commit-id: bd57e9e80b724320a2e25233f42508963bb79361 Former-commit-id: 9d82298054db7daf89d662d7314eb658ac29372e [formerly cae55fc763f7739b77ec610813257be1c796368e] [formerly 7ab017070eabb5cd22a163263781031873de218d [formerly a31e0c4b92aeec02b6378a738743501e8c1327d7 [formerly a31e0c4b92aeec02b6378a738743501e8c1327d7 [formerly a31e0c4b92aeec02b6378a738743501e8c1327d7 [formerly 601469c8ccfe9631997867818dda6950c8290b48]]]]] Former-commit-id: e7d115623441396378493f4ed45541d19bf09ea9 [formerly 4268a8670c134730afeaecfdac3348afe57d956c] Former-commit-id: 241344ee4d171fea514452b2c69cee5d58342c8a Former-commit-id: de938f4043fc6dc2dbe4b64b99fa6b96cfdf9526 Former-commit-id: 6d15c63778f50431aaacf70ffa8c5f3fbf497fa0 Former-commit-id: b2c6424200582a0611956eb798859763d99f3751 [formerly 0ccdc281ba9443e8a86405a6c526579ce5d9c3a4] Former-commit-id: ae386f67297c1887b03968f606b95925693e088b --- .github/workflows/haskell.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/haskell.yml b/.github/workflows/haskell.yml index 7ff8b1f..990b8e2 100644 --- a/.github/workflows/haskell.yml +++ b/.github/workflows/haskell.yml @@ -1,6 +1,6 @@ name: Haskell CI -on: [push] +on: [push, pull_request] jobs: build: @@ -13,13 +13,14 @@ jobs: with: ghc-version: '8.6.5' cabal-version: '3.0' - - name: Install dependencies + - name: Install stack run: | - cabal update - cabal install --only-dependencies --enable-tests + curl -sSL https://get.haskellstack.org/ | sh + - name: Build run: | - cabal configure --enable-tests - cabal build + stack init + stack build + - name: Run tests - run: cabal test + run: stack test