Skip to content

Commit

Permalink
ci: update workflow dependicies on code coverage and build
Browse files Browse the repository at this point in the history
  • Loading branch information
mlataza committed Jan 28, 2025
1 parent 116463a commit 6a736ae
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build-qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ on:

workflow_run:
workflows: ["Code Coverage"]
types:
- success
types: [completed]

jobs:
build:
Expand Down
16 changes: 14 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,25 @@ on:

workflow_run:
workflows: ["Unit Tests"]
types:
- success
types: [completed]

jobs:
on-success:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- run: echo 'The triggering workflow passed'

on-failure:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
steps:
- run: echo 'The triggering workflow failed'

coverage:
name: Measure code coverage
runs-on: windows-latest
needs: [on-success]

steps:
- name: Checkout Code
Expand Down

0 comments on commit 6a736ae

Please sign in to comment.