mirror of
https://github.com/freckle/yesod-auth-oauth2.git
synced 2026-01-11 19:58:28 +01:00
Migrate to GitHub Actions
This commit is contained in:
parent
cfcd8c5210
commit
766cb40d41
@ -1,39 +0,0 @@
|
||||
version: 2.1
|
||||
|
||||
orbs:
|
||||
stack-build: pbrisbin/stack-build@2.0.0
|
||||
|
||||
defaults: &defaults
|
||||
hlint-yaml-url:
|
||||
https://raw.githubusercontent.com/pbrisbin/dotfiles/master/hlint.yaml
|
||||
stack-arguments: --flag yesod-auth-oauth2:example
|
||||
weeder: false
|
||||
|
||||
workflows:
|
||||
commit:
|
||||
jobs:
|
||||
- stack-build/build-test-lint:
|
||||
<<: *defaults
|
||||
name: "default"
|
||||
- stack-build/build-test-lint:
|
||||
<<: *defaults
|
||||
name: "ghc-8.6.3 / lts-13.2"
|
||||
stack-yaml: stack-lts-13.2.yaml
|
||||
- stack-build/build-test-lint:
|
||||
<<: *defaults
|
||||
name: "ghc-8.8.3 / lts-16.10"
|
||||
stack-yaml: stack-lts-16.10.yaml
|
||||
- stack-build/build-test-nightly:
|
||||
name: "nightly"
|
||||
|
||||
nightly:
|
||||
triggers:
|
||||
- schedule:
|
||||
cron: "0 0 * * *"
|
||||
filters:
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
jobs:
|
||||
- stack-build/build-test-nightly:
|
||||
name: "nightly"
|
||||
35
.github/workflows/ci.yml
vendored
Normal file
35
.github/workflows/ci.yml
vendored
Normal file
@ -0,0 +1,35 @@
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches: main
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
stack-yaml:
|
||||
- stack.yaml
|
||||
- stack-lts-16.10.yaml
|
||||
- stack-lts-13.2.yaml
|
||||
fail-fast: false
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
~/.stack
|
||||
./.stack-work
|
||||
key: ${{ runner.os }}-${{ hashFiles(matrix.stack-yaml) }}-${{ hashFiles('*.cabal') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-${{ hashFiles(matrix.stack-yaml) }}-
|
||||
${{ runner.os }}-
|
||||
- run:
|
||||
curl --output .hlint.yaml https://raw.githubusercontent.com/pbrisbin/dotfiles/master/hlint.yaml
|
||||
- uses: freckle/stack-action@main
|
||||
with:
|
||||
stack-yaml: ${{ matrix.stack-yaml }}
|
||||
stack-arguments: --flag yesod-auth-oauth2:example
|
||||
weeder: false
|
||||
Loading…
Reference in New Issue
Block a user