-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (46 loc) · 1.66 KB
/
Copy pathworkflow.yaml
File metadata and controls
55 lines (46 loc) · 1.66 KB
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
name: Continuous Integration
on:
pull_request:
branches: [ "master" ]
push:
branches: [ "master" ]
tags: [ "*.*.*" ]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
resolver:
- "lts-18.28" # ghc 8.10.7
- "lts-19.33" # ghc 9.0.2
- "lts-20.26" # ghc 9.2.8
- "lts-21.22" # ghc 9.4.8
- "lts-22.11" # ghc 9.6.4
- "lts-23.10" # ghc 9.8.4
- "nightly-2025-03-01" # ghc 9.10.1
# TODO: lts-16.31 fails because of missing TH.Lift on Scientific
# TODO: lts-14.27 fails because of missing optics package
exclude:
# Macos now has problems installing latest ghc, sigh
- os: macOS-latest
resolver: "lts-18.28"
- os: macOS-latest
resolver: "lts-19.33"
runs-on: ${{ matrix.os }}
steps:
- name: 📥 Checkout repository
uses: actions/checkout@v1
- name: 🧰 Setup Stack
if: matrix.os != 'windows-latest'
run: |
[ -x "$(command -v stack)" ] && exit 0 #stack already exists
curl -sSL https://get.haskellstack.org/ | sh
- name: ⛓ Install dependencies
run: |
stack --resolver ${{ matrix.resolver }} --no-terminal --install-ghc build --test --bench --only-dependencies
- name: 🔨 Build
run: |
stack --resolver ${{ matrix.resolver }} --no-terminal build --test --no-run-tests --bench --no-run-benchmarks --haddock --no-haddock-deps
- name: 🧪 Test
run: |
stack --resolver ${{ matrix.resolver }} test --test-arguments "--quickcheck-max-size 30"