Try out GitHub actions
authorLuke Lau <luke_lau@icloud.com>
Sat, 24 Aug 2019 22:01:05 +0000 (18:01 -0400)
committerGitHub <noreply@github.com>
Sat, 24 Aug 2019 22:01:05 +0000 (18:01 -0400)
.github/workflows/haskell.yml [new file with mode: 0644]

diff --git a/.github/workflows/haskell.yml b/.github/workflows/haskell.yml
new file mode 100644 (file)
index 0000000..32c54b9
--- /dev/null
@@ -0,0 +1,26 @@
+name: Haskell CI
+
+on: [push]
+
+jobs:
+  build:
+   
+    runs-on: ubuntu-latest
+
+    steps:
+    - uses: actions/checkout@v1
+    - name: Install dependencies
+      run: cabal install --only-dependencies --enable-tests
+    - name: Install HIE
+      run: |
+        pushd $HOME
+        git clone https://github.com/haskell/haskell-ide-engine --recurse-submodules
+        cd haskell-ide-engine
+        cabal v2-install hie
+        cabal v2-install hoogle
+        hoogle generate
+        popd
+    - name: Build
+      run: cabal v2-build
+    - name: Run tests
+      run: cabal v2-test