cabal-doctest #1037
This file contains hidden or 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-14 | |
| - windows-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: hspec/setup-haskell@v1 | |
| with: | |
| ghc-version: 9.10.1 | |
| if: matrix.os == 'macos-14' | |
| - run: ghcup install ghc 9.6 --no-set | |
| - run: ghcup install ghc 8.6.5 --no-set | |
| if: matrix.os != 'macos-14' | |
| - 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 | |
| # -w for GHC < 9.4 is broken due to https://github.com/haskell/cabal/issues/11373 | |
| - run: ghcup install ghc 8.6.5 --set | |
| if: matrix.os != 'macos-14' | |
| - run: cabal doctest # -w ghc-8.6.5 | |
| if: matrix.os != 'macos-14' | |
| 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' |