mirror of
https://github.com/freckle/yesod-auth-oauth2.git
synced 2026-01-12 04:08:30 +01:00
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.
33 lines
728 B
YAML
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
|