Skip to content

Merge pull request #47 from bjin/fix-encoding #20

Merge pull request #47 from bjin/fix-encoding

Merge pull request #47 from bjin/fix-encoding #20

Workflow file for this run

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-19, lts-18, lts-16]
# Bugs in GHC make it crash too often to be worth running
exclude:
- os: windows-latest
resolver: nightly
- os: windows-latest
resolver: lts-16
steps:
- name: Clone project
uses: actions/checkout@v2
# Getting weird OS X errors...
# - 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
stack upgrade
stack --version
stack test --fast --no-terminal --resolver=${{ matrix.resolver }}