Merge pull request #67 from JonathanLorimer/add-eq-instance-to-oidc #45
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: Testing | |
on: | |
push: | |
branches: | |
- master | |
paths-ignore: | |
- "**.md" | |
pull_request: | |
branches: | |
- master | |
paths-ignore: | |
- "**.md" | |
jobs: | |
build: | |
strategy: | |
matrix: | |
resolver: | |
- lts-17 | |
- lts-18 | |
- lts-19 | |
- lts-20 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: haskell/actions/setup@v2 | |
with: | |
ghc-version: '9.2.5' | |
cabal-version: '3.8.1.0' | |
- uses: actions/cache@v2 | |
env: | |
cache-name: cache-stack | |
with: | |
path: | | |
.stack-work | |
~/.stack | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.resolver }}-${{ hashFiles('stack.yaml') }}-${{ hashFiles('*.cabal') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.resolver }}- | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- name: Setup | |
run: stack setup --resolver ${{ matrix.resolver }} | |
- name: Build | |
run: | | |
stack build --resolver ${{ matrix.resolver }} | |
stack build --flag oidc-client:build-examples --resolver ${{ matrix.resolver }} | |
- name: Run tests | |
run: stack test --resolver ${{ matrix.resolver }} |