Skip to content

Merge pull request #44 from adetokunbo/check-bump-data-default #64

Merge pull request #44 from adetokunbo/check-bump-data-default

Merge pull request #44 from adetokunbo/check-bump-data-default #64

Workflow file for this run

name: cabal
on:
push:
branches:
- master
pull_request:
types:
- opened
- synchronize
jobs:
fourmolu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: haskell-actions/run-fourmolu@v9
with:
version: "0.13.0.0"
build:
runs-on: ubuntu-latest
needs: fourmolu
strategy:
matrix:
cabal: ["3.6", "3.8"]
ghc: ["8.10.7", "9.0.2", "9.2.4", "9.4.1"]
env:
CONFIG: "--enable-tests --enable-benchmarks --flags=dev"
steps:
- uses: actions/checkout@v3
- uses: haskell/actions/setup@v2
id: setup-haskell-cabal
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: ${{ matrix.cabal }}
- run: cabal update
- run: cabal freeze $CONFIG
- uses: actions/[email protected]
with:
path: |
${{ steps.setup-haskell-cabal.outputs.cabal-store }}
dist-newstyle
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('cabal.project.freeze') }}
restore-keys: |
${{ runner.os }}-${{ matrix.ghc }}-
- run: cabal build all $CONFIG
- run: cabal test all $CONFIG
- run: cabal haddock all $CONFIG
- run: cabal sdist all