Skip to content

Commit

Permalink
add codecov token
Browse files Browse the repository at this point in the history
  • Loading branch information
joergbrech committed May 16, 2024
1 parent d8bbf40 commit 190b019
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/actions/test-linux/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ inputs:
required: false
default: false

codecov_token:
description: 'CodeCov token needed to publish coverage report on codecov'
required: true

unit-tests:
description: "Set to true to run TiGLs unit tests (true or false)"
required: false
Expand Down Expand Up @@ -80,3 +84,4 @@ runs:
uses: codecov/codecov-action@v4
with:
files: ./build/tests/unittests/coverageReport-unit.info,./build/tests/integrationtests/coverageReport-integration.info
token: ${{ inputs.codecov_token }}
4 changes: 4 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
GH_TOKEN:
description: 'A Github PAT'
required: true
CODECOV_TOKEN:
description: 'Needed to upload coverage report to codecov'
required: true

inputs:

Expand Down Expand Up @@ -110,6 +113,7 @@ jobs:
coverage: ${{ matrix.coverage == 'ON' || false }}
unit-tests: ${{ matrix.unit-tests }}
integration-tests: ${{ inputs.integration-tests == 'true' || false }}
codecov_token: ${{ secrets.CODECOV_TOKEN }}


build-windows:
Expand Down

0 comments on commit 190b019

Please sign in to comment.