on master help sign in
Enable CI for cabal-docspec

Fix indentation Fix build Fix build Fix build Fchange cabal build all to cabal install Fix build Fix build Fix review comments Fix review comments Fix review comments Fix review comments Fix review comments Fix review comments Fix review comments

commit487f6b3e7f2c489a7dd450cedf95cb520c6ec1fb authorRanjeet Kumar Ranjan <ranjeetr@composewell.com> dateTue 22 Jun 2021, 16:42 (5 years ago) parent0b87705
1 file changed+22−2
.github/workflows/haskell.yml+22−2
.github/workflows/haskell.yml+22−2
@@ -44,6 +44,7 @@ jobs:
4444 # Pull token from "secrets" setting of the github repo
4545 COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
4646 COVERAGE: ${{ matrix.coverage }}
47+ DOCTEST: ${{ matrix.doctest }}
4748
4849 runs-on: ${{ matrix.runner }}
4950 strategy:
@@ -54,6 +55,7 @@ jobs:
5455 - 8.10.4+stack
5556 - 8.10.4+macOS
5657 - 8.10.4+linux+coverage+cabal
58+ - 8.10.4+docspec
5759 - 8.8.4
5860 - 8.8.4+inspection+fusion-plugin+Werror
5961 - 8.6.5+fusion-plugin
@@ -115,6 +117,10 @@ jobs:
115117 cabal_project: cabal.project
116118 cabal_build_options: "--flag debug --flag -opt"
117119 runner: ubuntu-latest
120+ - name: 8.10.4+docspec
121+ ghc_version: 8.10.4
122+ doctest: "y"
123+ runner: ubuntu-latest
118124
119125 steps:
120126 - uses: actions/checkout@v2
@@ -141,13 +147,27 @@ jobs:
141147
142148 - name: Run tests
143149 run: |
144− if test -z "$COVERAGE"
150+ if test -n "$DOCTEST"
151+ then
152+ mkdir -p $HOME/.cabal/bin
153+ curl -sL https://github.com/phadej/cabal-extras/releases/download/cabal-docspec-0.0.0.20210111/cabal-docspec-0.0.0.20210111.xz > cabal-docspec.xz
154+ echo '0829bd034fba901cbcfe491d98ed8b28fd54f9cb5c91fa8e1ac62dc4413c9562 cabal-docspec.xz' | sha256sum -c -
155+ xz -d < cabal-docspec.xz > $HOME/.cabal/bin/cabal-docspec
156+ rm -f cabal-docspec.xz
157+ chmod a+x $HOME/.cabal/bin/cabal-docspec
158+ cabal build all
159+ $HOME/.cabal/bin/cabal-docspec --version
160+ $HOME/.cabal/bin/cabal-docspec --timeout 60
161+ elif test -z "$COVERAGE"
145162 then
146163 export TOOLS_DIR=/opt
147164 # /usr/local/opt/curl/bin for macOS
148165 export PATH=$HOME/.local/bin:$HOME/.ghcup/bin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/opt/curl/bin
149166 bash -c "$PACKCHECK_LOCAL_PATH $BUILD"
150− else
167+ fi
168+
169+ if test -n "$COVERAGE"
170+ then
151171 # Run tests with coverage
152172 cabal update
153173 # Build hpc-coveralls if needed