forked from morpheusgraphql/morpheus-graphql
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (46 loc) · 1.56 KB
/
haskell.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
42
43
44
45
46
47
48
49
50
51
52
name: CI
on: [pull_request]
jobs:
build:
strategy:
matrix:
# "8.2.2" TODO: fix: ByteCodeLink.lookupCE
ghc: ["8.4.4", "8.6.5", "8.8.3", "8.10.7", "latest"]
os: [ubuntu-latest, macOS-latest]
fail-fast: false
runs-on: ${{ matrix.os }}
name: GHC ${{ matrix.ghc}} (${{ matrix.os }})
steps:
- uses: actions/checkout@v2
- name: setup stack config
run: cp config/stack/${{ matrix.ghc }}.yaml stack.yaml
- name: Setup Haskell
uses: haskell/actions/[email protected]
with:
ghc-version: ${{ matrix.ghc }}
enable-stack: true
- name: Cache Stack
uses: actions/cache@v2
with:
path: ~/.stack
key: ${{ runner.os }}-${{ matrix.ghc }}-stack-${{ hashFiles('stack.yaml') }}-packages-${{ hashFiles('**/package.yaml') }}
restore-keys: |
${{ runner.os }}-${{ matrix.ghc }}-stack-${{ hashFiles('stack.yaml') }}
${{ runner.os }}-${{ matrix.ghc }}-stack-
# Install & Build & Test
- name: Install dependencies
run: |
stack build --fast --skip-ghc-check --no-terminal --test --only-dependencies
- name: Build
run: |
stack build --fast --test --bench --no-run-tests --no-run-benchmarks --haddock --no-haddock-deps
- name: Test
run: |
stack test --fast
hlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: lint
run: |
curl -sSL https://raw.github.com/ndmitchell/hlint/master/misc/run.sh | sh -s .