Skip to content

Force response body update #49

Force response body update

Force response body update #49

Workflow file for this run

name: Tests
on:
workflow_dispatch:
pull_request:
push:
branches:
- master
jobs:
stack:
name: Stack
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
args:
- "--resolver lts-20"
- "--resolver lts-19"
- "--resolver lts-18"
- "--resolver lts-17"
- "--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
EXTRA=""
if [[ ${{ matrix.os }} = "windows-latest" ]]
then
EXTRA="--no-run-tests"
fi
stack test --no-terminal ${{ matrix.args }} --haddock --no-haddock-deps --bench --no-run-benchmarks $EXTRA