Skip to content

Merge pull request #6 from noahmartinwilliams/master #10

Merge pull request #6 from noahmartinwilliams/master

Merge pull request #6 from noahmartinwilliams/master #10

Workflow file for this run

name: CI
# Trigger the workflow on push or pull request
on:
pull_request:
push:
# but only for the master branch
# branches: [master]
defaults:
run:
shell: bash
jobs:
stack:
name: ${{ matrix.os }} / ghc ${{ matrix.ghc }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
ghc:
- "8.10"
- "8.8"
- "8.6"
include:
- os: macOS-latest
ghc: "8.10"
# - os: windows-latest
# ghc: "8.10"
env:
STACK_FLAGS: "--system-ghc --no-install-ghc --fast"
steps:
- uses: actions/checkout@v2
- uses: actions/[email protected]
with:
enable-stack: true
ghc-version: ${{ matrix.ghc }}
- name: Set up stack
id: stack-setup
run: |
ln -s stack-${{ matrix.ghc }}.yaml stack.yaml
echo "::set-output name=stack-root::$(stack path --system-ghc --no-install-ghc --stack-root)"
- uses: actions/cache@v1
with:
path: ${{ steps.stack-setup.outputs.stack-root }}
key: ${{ runner.os }}-${{ matrix.ghc }}-stack
- name: Build dependencies
run: |
stack build $STACK_FLAGS --test --no-run-tests --only-dependencies
- name: Build
run: |
stack build $STACK_FLAGS --test --no-run-tests
- name: Test
run: |
stack test