forked from dbpatterson/authenticate
-
Notifications
You must be signed in to change notification settings - Fork 26
42 lines (37 loc) · 1.06 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
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]
resolver: [nightly, lts-15, lts-14, lts-12, lts-11]
# Bugs in GHC make it crash too often to be worth running
exclude:
- os: windows-latest
resolver: nightly
- os: windows-latest
resolver: lts-15
steps:
- name: Clone project
uses: actions/checkout@v2
- name: Cache dependencies
uses: actions/cache@v1
with:
path: ~/.stack
key: ${{ runner.os }}-${{ matrix.resolver }}-${{ hashFiles('stack.yaml') }}
restore-keys: |
${{ runner.os }}-${{ matrix.resolver }}-
- name: Build and run tests
shell: bash
run: |
set -ex
curl -sSL https://get.haskellstack.org/ | sh -s - -f
stack test --fast --no-terminal --resolver=${{ matrix.resolver }}