Provide context parsing in the mkMessage
function
#45
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
name: Tests | |
# Is taken from the https://github.com/yesodweb/yesod/blob/master/.github/workflows/tests.yml template | |
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] | |
args: | |
- "--resolver lts-22" | |
- "--resolver lts-20" | |
- "--resolver lts-18" | |
- "--resolver lts-16" | |
exclude: | |
# llvm too new on macos-latest for ghc 8 | |
- os: macos-latest | |
args: "--resolver lts-18" | |
- os: macos-latest | |
args: "--resolver lts-16" | |
steps: | |
- name: Clone project | |
uses: actions/checkout@v4 | |
- name: Install stack if needed | |
shell: bash | |
run: | | |
set -ex | |
if [[ "${{ matrix.os }}" == "macos-latest" ]] | |
then | |
# macos-latest does not include Haskell tools as of 2024-05-06. | |
curl -sSL https://get.haskellstack.org/ | sh | |
fi | |
- name: Build and run tests | |
shell: bash | |
run: | | |
set -ex | |
stack --version | |
stack test --fast --no-terminal ${{ matrix.args }} | |