Run tests on Stackage nightly #153
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |