Skip to content

Replace Travis with github actions #2

Replace Travis with github actions

Replace Travis with github actions #2

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-21, lts-20, lts-19]
# Bugs in GHC make it crash too often to be worth running
#exclude:
# - os: windows-latest
# resolver: nightly
steps:
- name: Clone project
uses: actions/checkout@v3
- name: Cache dependencies
uses: actions/cache@v3
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 }}