Skip to content

Commit

Permalink
fix codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
max402 committed Jun 4, 2024
1 parent bb164ef commit b2a8ebc
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 30 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Develop branch build
on:
workflow_call:

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
17 changes: 2 additions & 15 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,5 @@ 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@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
exclude: '*datasafe-business*'
flags: unittests
verbose: true

- name: Step 6 - Upload coverage e2e tests reports to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
exclude: '!*datasafe-business*'
flags: e2e_tests
verbose: true
call-codecov-workflow:
uses: ./.github/workflows/codecov.yml
17 changes: 2 additions & 15 deletions .github/workflows/push-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,5 @@ jobs:
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@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
exclude: '*datasafe-business*'
flags: unittests
verbose: true

- name: Step 7 - Upload coverage e2e tests reports to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
exclude: '!*datasafe-business*'
flags: e2e_tests
verbose: true
call-codecov-workflow:
uses: ./.github/workflows/codecov.yml

0 comments on commit b2a8ebc

Please sign in to comment.