-
-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (38 loc) · 1.04 KB
/
ci.yaml
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
---
name: CI
on:
workflow_dispatch:
pull_request: ~
push:
branches:
- master
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
ghc: ["9.6.4"]
stack: ["2.15.5"]
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Setup Haskell Stack
uses: haskell/actions/setup@v1.2
with:
ghc-version: ${{ matrix.ghc }}
stack-version: ${{ matrix.stack }}
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.stack
key: ${{ runner.os }}-${{ matrix.ghc }}-stack
- name: Install dependencies
run: |
stack --no-terminal build --system-ghc --pedantic --flag mkjson:-static --test --only-dependencies
- name: Build
run: |
stack --no-terminal build --system-ghc --pedantic --flag mkjson:-static
- name: Test
run: |
stack --no-terminal test --system-ghc --pedantic --flag mkjson:-static