Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix codecov #323

Merged
merged 4 commits into from
Jun 10, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Develop branch build
on:
workflow_run:
workflows: ["pull-request-job", "develop-build-job"]
types: [completed]

jobs:
codecov-job:
runs-on: ubuntu-latest
steps:
- name: Upload coverage unittests reports to Codecov
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
16 changes: 0 additions & 16 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,3 @@ jobs:

- name: Step 4 - Build & Test
run: mvn clean verify -ntp -PIT

- name: Step 5 - Upload coverage unittests reports to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
gcov_ignore: '!*datasafe-business*'
flags: unittests
verbose: true

- name: Step 6 - Upload coverage e2e tests reports to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
gcov_include: '*datasafe-business*'
flags: e2e_tests
verbose: true
16 changes: 0 additions & 16 deletions .github/workflows/push-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,3 @@ jobs:
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
GPG_SECRET_KEY: ${{ secrets.GPG_SECRET_KEY }}
GPG_OWNERTRUST: ${{ secrets.GPG_OWNERTRUST }}

- name: Step 6 - Upload coverage unittests reports to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
gcov_ignore: '!*datasafe-business*'
flags: unittests
verbose: true

- name: Step 7 - Upload coverage e2e tests reports to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
gcov_include: '*datasafe-business*'
flags: e2e_tests
verbose: true