made threshold tiny bit more permissive #631
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: CI | |
on: [push, pull_request] | |
jobs: | |
validate: | |
name: GHC ${{ matrix.ghc }}, Cabal ${{ matrix.cabal }} | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
ghc: ['8.6', '8.8', '8.10', '9.0', '9.2', '9.4'] | |
cabal: ['3.4'] | |
env: | |
CONFIG: "--enable-tests --enable-doc --builddir=build/no-full-width-positions" | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2.3.4 | |
- name: Setup Haskell | |
uses: haskell/actions/setup@v2 | |
with: | |
ghc-version: ${{ matrix.ghc }} | |
cabal-version: ${{ matrix.cabal }} | |
- name: Determine Dependencies | |
run: | | |
cabal update | |
cabal freeze | |
- name: Check Cache | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.cabal/store | |
build/no-full-width-positions | |
build/full-width-positions | |
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ matrix.cabal }}-${{ hashFiles('cabal.project.freeze') }} | |
restore-keys: | | |
${{ runner.os }}-${{ matrix.ghc }}-${{ matrix.cabal }}- | |
- name: Build | |
run: cabal build parsley $CONFIG | |
- name: Test (-full-width-positions) | |
run: | | |
cabal test parsley-core $CONFIG | |
cabal test parsley $CONFIG | |
- name: Test (+full-width-positions) | |
run: | | |
rm cabal.project.freeze | |
cabal test parsley-core --flag full-width-positions $CONFIG --builddir=build/full-width-positions | |
cabal test parsley --flag full-width-positions $CONFIG --builddir=build/full-width-positions | |
- name: Doc | |
run: cabal haddock parsley $CONFIG |