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:
peelz
2022-08-06 01:30:05 -04:00
parent 508f8d3dcd
commit 3de2d8e550
6 changed files with 164 additions and 81 deletions
+17
View File
@@ -0,0 +1,17 @@
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: On push to master branch
on:
push:
branches: [master]
jobs:
run-tests:
uses: ./.github/workflows/run-tests.yml
with:
ref: ${{ github.event.ref }}
publish-release:
needs: [run-tests]
uses: ./.github/workflows/publish-release.yml