Update workflow

Run CI on all PRs and not commits to default branch.

Signed-off-by: Jacob Perron <jacobmperron@gmail.com>
This commit is contained in:
Jacob Perron 2022-01-24 18:16:31 -08:00 committed by Jacob Perron
parent 4304155f76
commit 35270f58cf

View file

@ -1,12 +1,9 @@
name: Build and test
on:
# Run for any commit in origin repository
push:
# And pull requests from forks
branches: ['master']
pull_request:
branches:
# This avoids running the job twice for PRs from origin repository
- '**:**'
env:
BUILD_TYPE: Release