Bump tasty upper bound to <1.6 & release tasty-dejafu #113
Workflow file for this run
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: Run tests | |
on: pull_request | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: haskell/actions/[email protected] | |
with: | |
enable-stack: true | |
- name: Setup | |
run: | | |
stack --no-terminal install stylish-haskell hlint | |
- name: Lint | |
run: | | |
set -ex | |
stack --no-terminal exec ./lint.sh | |
stack --no-terminal exec ./style.sh | |
git diff --exit-code | |
doctest: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: haskell/actions/[email protected] | |
with: | |
enable-stack: true | |
- name: Setup | |
run: | | |
set -ex | |
stack --no-terminal setup | |
stack --no-terminal install doctest | |
- name: Build | |
run: | | |
stack --no-terminal build | |
- name: Test | |
run: | | |
stack --no-terminal exec -- bash -c "DEJAFU_DOCTEST=y doctest dejafu/Test" | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
resolver: | |
- lts-10.0 # ghc-8.2 | |
- lts-12.0 # ghc-8.4 | |
- lts-14.0 # ghc-8.6 | |
- lts-15.0 # ghc-8.8 | |
- lts-17.0 # ghc-8.10 | |
- lts-19.0 # ghc-9.0 | |
- lts-20.0 # ghc-9.2 | |
- lts-21.0 # ghc-9.4 | |
- nightly-2023-07-01 # ghc-9.6 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: haskell/actions/[email protected] | |
with: | |
enable-stack: true | |
- name: Setup | |
env: | |
RESOLVER: ${{ matrix.resolver }} | |
run: | | |
set -ex | |
stack --no-terminal init --resolver="$RESOLVER" --force | |
stack --no-terminal setup | |
- name: Build | |
env: | |
RESOLVER: ${{ matrix.resolver }} | |
run: | | |
stack --no-terminal build --ghc-options="-Werror -Wno-unused-imports -Wno-incomplete-uni-patterns" | |
- name: Test | |
env: | |
RESOLVER: ${{ matrix.resolver }} | |
run: | | |
cd dejafu-tests | |
stack --no-terminal exec -- dejafu-tests +RTS -s |