Change on-push workflow to run unit tests
This changes workflows to run unit tests for every new commit (including PRs). A new release will only be published if all tests pass on the master branch.
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
|
||||
|
||||
name: On push to a PR
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
run-tests-for-pr:
|
||||
uses: ./.github/workflows/run-tests.yml
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
Reference in New Issue
Block a user