forked from facebookincubator/retrie
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 838 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Testing
on: [push, pull_request]
jobs:
test:
timeout-minutes: 360
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
ghc: ['9.10.1', '9.8.1', '9.6.3', '9.4.1', '9.2.4']
steps:
- uses: actions/checkout@v2
- uses: haskell/actions/[email protected]
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: "3.10.2.0"
- name: Cache Cabal
uses: actions/cache@v2
with:
path: |
~/.cabal/packages
~/.cabal/store
key: ${{ runner.os }}-${{ matrix.ghc }}-{{matrix.ghc-lib}}-cabal-test
- run: cabal update
- name: Build
shell: bash
run: cabal build
- name: Haddock
shell: bash
run: cabal haddock
- name: Test
shell: bash
run: cabal test