-
Notifications
You must be signed in to change notification settings - Fork 12
58 lines (45 loc) · 1.24 KB
/
main.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
53
54
55
56
57
58
name: Haskell Stack CI
on: [push]
jobs:
linux:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Cache .stack-work
uses: actions/cache@v2
with:
path: .stack-work
key: ulid_stack-work_ubuntu
restore-keys: ulid_stack-work_ubuntu
- name: Setup Stack
uses: haskell/actions/setup@v1
with:
enable-stack: true
stack-no-global: true
- name: Run test suite including test coverage
run: stack test --coverage
- name: Run benchmarks
run: stack bench
- name: Build documentation
run: stack haddock
macos:
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- name: Cache .stack-work
uses: actions/cache@v2
with:
path: .stack-work
key: ulid_stack-work_macos
restore-keys: ulid_stack-work_macos
- name: Setup Stack
uses: haskell/actions/setup@v1
with:
enable-stack: true
stack-no-global: true
- name: Run test suite including test coverage
run: stack test --coverage
- name: Run benchmarks
run: stack bench
- name: Build documentation
run: stack haddock