-
Notifications
You must be signed in to change notification settings - Fork 12
37 lines (36 loc) · 921 Bytes
/
ci.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
name: ci
on:
push:
branches:
- main
paths-ignore:
- "**.md"
pull_request:
types:
- opened
- synchronize
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: haskell/actions/setup@v1
with:
ghc-version: "8.10.4"
enable-stack: true
stack-version: "latest"
- uses: actions/cache@v2
name: Cache ~/.stack
with:
path: |
~/.stack
~/.local/bin/record-dot-preprocessor
key: ${{ runner.os }}-store-${{ hashFiles('stack.yaml.lock') }}-${{ hashFiles('package.yaml') }}
- name: Install record-dot-preprocessor
run: |
if [ ! -f ~/.local/bin/record-dot-preprocessor ]; then stack install record-dot-preprocessor; fi
- name: Build
run: stack build
- name: Test
run: stack test