mirror of
https://github.com/freckle/yesod-auth-oauth2.git
synced 2026-01-11 19:58:28 +01:00
This required a lot of CPP refactoring and extension. I plan to shift our lower bound and target only the newer hoauth2 soon, but I'd like to get out a compatible version first, which this aims to do. The comments in Compat.hs try to explain the gymnastics we have to endure to get there. I'm sorry, it's not ideal.
44 lines
1.0 KiB
YAML
44 lines
1.0 KiB
YAML
name: CI
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches: main
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
stack-yaml:
|
|
- stack.yaml
|
|
- stack-hoauth2-2.0.yaml
|
|
- stack-hoauth2-2.2.yaml
|
|
- stack-hoauth2-2.3.yaml
|
|
- stack-lts-17.4.yaml
|
|
- stack-lts-16.10.yaml
|
|
- stack-lts-13.2.yaml
|
|
fail-fast: false
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: freckle/stack-cache-action@v2
|
|
with:
|
|
stack-yaml: ${{ matrix.stack-yaml }}
|
|
- uses: freckle/stack-action@v3
|
|
with:
|
|
stack-yaml: ${{ matrix.stack-yaml }}
|
|
stack-arguments: --flag yesod-auth-oauth2:example
|
|
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- run:
|
|
curl --output .hlint.yaml https://raw.githubusercontent.com/pbrisbin/dotfiles/master/hlint.yaml
|
|
- uses: rwe/actions-hlint-setup@v1
|
|
- uses: rwe/actions-hlint-run@v2
|
|
with:
|
|
fail-on: warning
|