Skip to content

Bump haskell/actions from 2.4.3 to 2.4.4 #114

Bump haskell/actions from 2.4.3 to 2.4.4

Bump haskell/actions from 2.4.3 to 2.4.4 #114

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request: {}
defaults:
run:
shell: bash
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
ghc: ['8.4', '8.6', '8.8', '8.10', '9.0']
include:
- os: windows-latest
ghc: 'latest'
- os: macOS-latest
ghc: 'latest'
steps:
- uses: actions/checkout@v3
- uses: haskell/actions/[email protected]
id: setup-haskell-cabal
with:
ghc-version: ${{ matrix.ghc }}
- name: Update cabal package database
run: cabal update
- name: Install hspec-discover
run: cabal install hspec-discover
- uses: actions/[email protected]
name: Cache cabal output
with:
path: |
${{ steps.setup-haskell-cabal.outputs.cabal-store }}
dist-newstyle
key: ${{ runner.os }}-${{ matrix.ghc }}
- name: Test
run: |
cabal sdist -z -o .
cabal get isbn-*.tar.gz
cd isbn-*/
cabal test --test-show-details=direct
- name: Haddock
run: cabal haddock
# build-freebsd:
# # The FreeBSD environment uses MacOS for its virtualization
# # See: https://github.com/vmactions/freebsd-vm#under-the-hood.
# runs-on: macos-latest
# steps:
# - uses: actions/checkout@v3
# - name: Test
# id: build-freebsd
# uses: vmactions/[email protected]
# with:
# usesh: true
# mem: 4096
# prepare: pkg install -y ghc hs-cabal-install git
# # Virtual machine does not allow to leverage cache
# # and is quite slow, so only tests are run.
# run: |
# cabal update
# cabal install hspec-discover
# cabal test --test-show-details=direct