-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (30 loc) · 1007 Bytes
/
test.yml
File metadata and controls
38 lines (30 loc) · 1007 Bytes
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
on: [push]
name: Test
jobs:
build:
name: Test
runs-on: ${{ matrix.os }}
continue-on-error: true
strategy:
matrix:
ghc: ['8.8', '8.10', '9.0', '9.2']
os: ['ubuntu-latest', 'macos-latest']
steps:
- uses: actions/checkout@v2
- name: Cache Haskell dependencies
uses: actions/cache@v2
with:
path: |
~/.cabal/packages
~/.cabal/store
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('**/*.cabal', 'configurations/ghc-${{ matrix.ghc }}.project') }}
restore-keys: |
${{ runner.os }}-${{ matrix.ghc }}-
${{ runner.os }}-
- uses: haskell/actions/setup@v1
with:
ghc-version: ${{ matrix.ghc }}
- name: Build
run: cabal build all --project-file ./configurations/ghc-${{ matrix.ghc }}.project
- name: Test
run: cabal test all --enable-tests --project-file ./configurations/ghc-${{ matrix.ghc }}.project