on master help sign in
Refactor CI run script
commit2448b9595d0150543dc4c8f29d6581d85dfe7e5a authorHarendra Kumar <harendra@composewell.com> dateSat 27 Aug 2022, 17:59 (4 years ago) parentaf7ef4b
1 file changed+6−9
.github/workflows/haskell.yml+6−9
.github/workflows/haskell.yml+6−9
@@ -223,15 +223,7 @@ jobs:
223223 cabal build --project-file cabal.project.doctest all
224224 $HOME/.cabal/bin/cabal-docspec --version
225225 $HOME/.cabal/bin/cabal-docspec --timeout 60 --check-properties --property-variables xs
226− elif test -z "$COVERAGE"
227− then
228− export TOOLS_DIR=/opt
229− # /usr/local/opt/curl/bin for macOS
230− export PATH=$HOME/.local/bin:$HOME/.ghcup/bin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/opt/curl/bin
231− bash -c "$PACKCHECK_LOCAL_PATH $BUILD"
232− fi
233−
234− if test -n "$COVERAGE"
226+ elif test -n "$COVERAGE"
235227 then
236228 # Run tests with coverage
237229 cabal update
@@ -243,4 +235,9 @@ jobs:
243235 bin/test.sh --coverage --raw
244236 # XXX Uncomment this and fix it properly later
245237 # hpc-coveralls --repo-token="$COVERALLS_TOKEN" --coverage-mode=StrictlyFullLines
238+ else
239+ export TOOLS_DIR=/opt
240+ # /usr/local/opt/curl/bin for macOS
241+ export PATH=$HOME/.local/bin:$HOME/.ghcup/bin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/opt/curl/bin
242+ bash -c "$PACKCHECK_LOCAL_PATH $BUILD"
246243 fi