Skip to content

Commit

Permalink
ci: refactor unit test and code coverage workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
mlataza committed Jan 28, 2025
1 parent 515437e commit 0be14b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,28 +1,11 @@
name: Code Coverage

on:
workflow_run:
workflows: [Unit Tests]
types: [completed]
on: push

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
uses: actions/checkout@v3
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: Unit Tests

on:
push
on: push

jobs:
test:
Expand Down

0 comments on commit 0be14b9

Please sign in to comment.