Skip to content

Run tests on Stackage nightly #165

Run tests on Stackage nightly

Run tests on Stackage nightly #165

Workflow file for this run

name: Run tests on Stackage nightly
on:
workflow_dispatch:
# allow manual trigger
schedule:
- cron: '33 3 * * *'
# run daily
jobs:
build:
strategy:
fail-fast: false
matrix:
resolver:
- 'lts'
- 'nightly'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache stack dir
uses: actions/cache@v4
env:
cache-name: cache-stack-dir
with:
path: ~/.stack
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.resolver }}-${{ hashFiles('*.cabal') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.resolver }}-
- name: Build & Test
run: stack test --haddock --no-terminal --resolver ${{ matrix.resolver }}