Patch release 1.1.2.1 #97
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
name: CI | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- os: ubuntu-latest | |
stack-yaml: stack-lts-19.yaml # GHC 9.0 | |
extra-args: "" | |
- os: ubuntu-latest | |
stack-yaml: stack-lts-19.yaml | |
extra-args: "--flag xlsx:microlens" | |
- os: ubuntu-latest | |
stack-yaml: stack-lts-20.yaml # GHC 9.2 | |
extra-args: "" | |
- os: ubuntu-latest | |
stack-yaml: stack-lts-21.yaml # GHC 9.4 | |
extra-args: "" | |
- os: ubuntu-latest | |
stack-yaml: stack-nightly.yaml | |
extra-args: "" | |
steps: | |
- name: Clone project | |
uses: actions/checkout@v2 | |
- name: Cache dependencies | |
uses: actions/cache@v2 | |
with: | |
path: ~/.stack | |
key: ${{ runner.os }}-${{ hashFiles(matrix.stack-yaml) }}-${{ matrix.extra-args }} | |
- name: Build and run tests | |
shell: bash | |
run: | | |
set -ex | |
stack upgrade | |
stack --version | |
stack test --fast --stack-yaml=${{ matrix.stack-yaml }} ${{ matrix.extra-args }} |