Skip to content

v3.3.1.3: fix regression with tasty-1.5 #5

v3.3.1.3: fix regression with tasty-1.5

v3.3.1.3: fix regression with tasty-1.5 #5

Workflow file for this run

name: Cabal (macOS and Windows)
on:
push:
branches:
- master
paths:
- '.github/workflows/macOS.yml'
- 'tasty-silver.cabal'
- 'Setup.hs'
- 'Test/**.hs'
- 'tests/**'
pull_request:
paths:
- '.github/workflows/macOS.yml'
- 'tasty-silver.cabal'
- 'Setup.hs'
- 'Test/**.hs'
- 'tests/**'
defaults:
run:
shell: bash
jobs:
build-and-test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix: { os: [macos-latest, windows-latest] }
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: haskell-actions/setup@v2
id: setup-haskell
with:
ghc-version: latest
cabal-version: latest
cabal-update: true
- name: Configure the build plan
run: |
cabal configure -O1 --enable-tests
- name: Restore cached dependencies
uses: actions/cache/restore@v3
id: cache
env:
key: ${{ runner.os }}-cabal-${{ steps.setup-haskell.outputs.cabal-version }}-ghc-${{ steps.setup-haskell.outputs.ghc-version }}
with:
path: ${{ steps.setup-haskell.outputs.cabal-store }}
# The file `plan.json` contains the build information.
key: ${{ env.key }}-plan-${{ hashFiles('**/plan.json') }}
restore-keys: ${{ env.key }}-
- name: Install dependencies
if: ${{ steps.cache.outputs.cache-hit != 'true' }}
run: |
cabal build --only-dependencies
- name: Cache dependencies
uses: actions/cache/save@v3
if: ${{ steps.cache.outputs.cache-hit != 'true' }}
with:
path: ${{ steps.setup-haskell.outputs.cabal-store }}
key: ${{ steps.cache.outputs.cache-primary-key }}
- name: Build
run: |
cabal build
- name: Test
run: |
cabal test --test-show-details=direct --test-options=-i