mirror of
https://github.com/freckle/yesod-auth-oauth2.git
synced 2026-01-12 04:08:30 +01:00
- Add concurrency - Use updated stack-action that caches for itself - Use haskell/actions HLint actions - Stop curling a .hlint.yaml, we have one here
45 lines
968 B
YAML
45 lines
968 B
YAML
name: CI
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches: main
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
stack-yaml:
|
|
- stack-nightly.yaml
|
|
- stack.yaml
|
|
- stack-lts-17.4.yaml
|
|
- stack-lts-16.10.yaml
|
|
- stack-lts-13.2.yaml
|
|
- stack-hoauth2-2.0.yaml
|
|
- stack-hoauth2-2.2.yaml
|
|
- stack-hoauth2-2.3.yaml
|
|
- stack-hoauth2-2.6.yaml
|
|
fail-fast: false
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: freckle/stack-action@v4
|
|
with:
|
|
stack-yaml: ${{ matrix.stack-yaml }}
|
|
stack-arguments: --flag yesod-auth-oauth2:example
|
|
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: haskell/actions/hlint-setup@v2
|
|
- uses: haskell/actions/hlint-run@v2
|
|
with:
|
|
fail-on: warning
|