Skip to content

ci: support build and check #3

ci: support build and check

ci: support build and check #3

Workflow file for this run

name: Haskell CI
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: haskell-actions/setup@v2
with:
ghc-version: "9.4.7"
cabal-version: "3.10.2.0"
- name: Cabal cache
uses: actions/cache@v3
env:
cache-name: cache-cabal
with:
path: ~/.cabal
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/*.cabal') }}-${{ hashFiles('**/cabal.project') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
- name: Cabal update
run: cabal update
- name: Build
run: cabal build --enable-tests --enable-benchmarks all
- name: Run tests
run: cabal test --test-show-details=direct