only run frontend tests if backend passes w/ burnettk

This commit is contained in:
jasquat 2023-05-02 11:49:06 -04:00
parent 9b3fcbe353
commit f4870003cf
No known key found for this signature in database
1 changed files with 6 additions and 2 deletions

View File

@ -1,8 +1,10 @@
name: Frontend Tests
on:
- push
- pull_request
workflow_run:
workflows: ["Backend Tests"]
# completed does not mean success of Tests workflow. see below checking github.event.workflow_run.conclusion
types: [completed]
defaults:
run:
@ -13,6 +15,7 @@ defaults:
jobs:
tests:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Development Code
uses: actions/checkout@v3
@ -57,6 +60,7 @@ jobs:
cypress-run:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Checkout
uses: actions/checkout@v3