cabal-doctest #448
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: cabal-doctest | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
schedule: | |
- cron: 0 0 * * * | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
- macos-13 | |
- windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: hspec/setup-haskell@v1 | |
with: | |
ghc-version: 9.10.1 | |
if: matrix.os == 'macos-13' | |
- run: ghcup install ghc 9.6 --no-set | |
- run: ghcup install ghc 8.6.5 --no-set | |
- run: cabal --version | |
- run: cabal path | |
- run: cabal update | |
- run: cabal install -f cabal-doctest | |
- run: cabal doctest --allow-newer=False | |
- run: cabal doctest -w ghc-9.6 | |
- run: cabal doctest -w ghc-8.6.5 | |
cabal-doctest-success: | |
needs: build | |
runs-on: ubuntu-latest | |
if: always() # this is required as GitHub considers "skipped" jobs as "passed" when checking branch protection rules | |
steps: | |
- run: false | |
if: needs.build.result != 'success' |