yesod-auth-oauth2/.github/workflows/ci.yml
patrick brisbin f892fa472d
Move haskell-tag to Release Workflow
Workflows that use the default GITHUB_TOKEN cannot trigger other
Workflows. This is a security thing (thanks crypto-bros) that prevents
us from pushing a tag in an attempt to trigger a Release.

Instead, we move that tagging to the Release Workflow itself and allow
that to run on pushes to main in addition to pushes of tags. This way,
pushes of tags continue to upload as before, but also pushes of changed
versions will now create a tag and upload, as desired.
2021-05-10 17:10:57 -04:00

33 lines
728 B
YAML

name: CI
on:
pull_request:
push:
branches: main
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
stack-yaml:
- stack.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@v1.0.1
with:
stack-yaml: ${{ matrix.stack-yaml }}
- 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