-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (35 loc) · 937 Bytes
/
ci.yaml
File metadata and controls
41 lines (35 loc) · 937 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
39
40
41
name: CI
on: [push]
jobs:
validate:
name: GHC ${{ matrix.ghc }}
runs-on: ubuntu-18.04
strategy:
fail-fast: false
matrix:
ghc: ['9.0.1']
env:
CONFIG: "--enable-tests"
steps:
- name: Checkout repository
uses: actions/checkout@v2.3.4
- name: Setup Haskell
uses: haskell/actions/setup@v1.2.2
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: '3.4.0.0'
- name: Check Cache
uses: actions/cache@v2
with:
path: |
~/.cabal/store
dist-newstyle
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('cabal.project.freeze') }}
restore-keys: |
${{ runner.os }}-${{ matrix.ghc }}-
- name: Build
run: cabal build $CONFIG
- name: Test
run: |
cabal test parser-test $CONFIG
cabal test convert-test $CONFIG