-
Notifications
You must be signed in to change notification settings - Fork 76
47 lines (43 loc) · 1.17 KB
/
tests.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
name: Tests
on:
pull_request:
push:
branches:
- master
jobs:
build:
name: CI
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
stack_args:
- --resolver=nightly
- --resolver=lts-21
- --resolver=lts-20
- --resolver=lts-19
- --resolver=lts-18
- --resolver=lts-16
- --resolver=lts-14
- --resolver=lts-12
- --stack-yaml=stack-ghc-9.2.yaml
exclude:
- os: windows-latest
stack_args: "--stack-yaml=stack-ghc-9.2.yaml"
steps:
- name: Clone project
uses: actions/checkout@v2
- name: Build and run tests
shell: bash
run: |
set -ex
stack upgrade
stack --version
if [[ "${{ runner.os }}" = 'Windows' ]]
then
# Looks like a bug in Stack, this shouldn't break things
ls C:/ProgramData/Chocolatey/bin/
rm C:/ProgramData/Chocolatey/bin/ghc*
fi
stack test --fast --no-terminal ${{ matrix.stack_args }}