2020-06-06 18:04:57 +03:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
# Trigger the workflow on push or pull request, but only for the master branch
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
stack:
|
|
|
|
name: ${{ matrix.os }}-${{ matrix.ghc }}-stack
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2020-09-24 06:09:13 +03:00
|
|
|
stack: ["2.3.3"]
|
2020-06-06 18:04:57 +03:00
|
|
|
ghc: ["8.8.3"]
|
2020-09-13 21:07:37 +03:00
|
|
|
os: [ubuntu-latest]
|
2020-06-06 18:04:57 +03:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
if: github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.ref == 'refs/heads/master'
|
|
|
|
|
|
|
|
- uses: actions/setup-haskell@v1.1
|
|
|
|
name: Setup Haskell Stack
|
|
|
|
with:
|
|
|
|
ghc-version: ${{ matrix.ghc }}
|
|
|
|
stack-version: ${{ matrix.stack }}
|
|
|
|
enable-stack: true
|
|
|
|
|
|
|
|
- uses: actions/cache@v1
|
|
|
|
name: Cache ~/.stack
|
|
|
|
with:
|
|
|
|
path: ~/.stack
|
|
|
|
key: ${{ runner.os }}-${{ matrix.ghc }}-stack
|
|
|
|
|
|
|
|
- name: Test
|
|
|
|
run: |
|
2020-06-06 18:24:32 +03:00
|
|
|
stack test
|