Release: [0.3.0.0] #4
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: library test | |
on: | |
push: | |
paths: | |
- '.github/workflows/*' | |
- 'app/*' | |
- 'Setup.hs' | |
- 'examples/*' | |
- '*.cabal' | |
- 'src/*' | |
- 'stack.yaml' | |
- 'test/*' | |
permissions: | |
contents: read | |
jobs: | |
testing: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
snapshot: | |
- 'lts-18.5' | |
- 'lts-22.42' | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Cache stack global package db | |
id: stack-global | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.stack | |
key: ${{ matrix.snapshot }}--stack-global | |
- name: Cache stack work | |
id: stack-local | |
uses: actions/cache@v4 | |
with: | |
path: | | |
.stack-work | |
key: ${{ matrix.snapshot }}--stack-local | |
- name: Build and test | |
run: | | |
stack test --stack-yaml stack-${{ matrix.snapshot }}.yaml |