-
Notifications
You must be signed in to change notification settings - Fork 63
44 lines (43 loc) · 1.19 KB
/
workflow.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
on:
pull_request:
push:
branches:
- master
jobs:
build:
name: CI
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
stack-yaml: stack-lts-19.yaml # GHC 9.0
extra-args: ""
- os: ubuntu-latest
stack-yaml: stack-lts-19.yaml
extra-args: "--flag xlsx:microlens"
- os: ubuntu-latest
stack-yaml: stack-lts-20.yaml # GHC 9.2
extra-args: ""
- os: ubuntu-latest
stack-yaml: stack-lts-21.yaml # GHC 9.4
extra-args: ""
- os: ubuntu-latest
stack-yaml: stack-nightly.yaml
extra-args: ""
steps:
- name: Clone project
uses: actions/checkout@v2
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.stack
key: ${{ runner.os }}-${{ hashFiles(matrix.stack-yaml) }}-${{ matrix.extra-args }}
- name: Build and run tests
shell: bash
run: |
set -ex
stack upgrade
stack --version
stack test --fast --stack-yaml=${{ matrix.stack-yaml }} ${{ matrix.extra-args }}