Skip to content

Commit

Permalink
Merge pull request #82 from felixfontein/codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
webknjaz authored Jul 2, 2024
2 parents 63f8975 + 21fa8bc commit 1c1f673
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ ansible-core 2.12 or later when `target-python-version` is also specified
**(DEFAULT: `auto`)**


### `codecov-token`

The Codecov token to use when uploading coverage data. **(OPTIONAL)**


### `collection-root`

Path to collection root relative to repository root **(DEFAULT: `.`)**
Expand Down
7 changes: 6 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ inputs:
ansible-core-github-repository-slug:
description: The GitHub repository slug from which to check out ansible-core
default: ansible/ansible
codecov-token:
description: >-
The Codecov token to use when uploading coverage data.
controller-python-version:
description: >-
Controller Python version. Only used for integration tests and
Expand Down Expand Up @@ -673,7 +676,7 @@ runs:
Send the coverage data over to
https://codecov.io/gh/${{ github.repository }}
if: steps.ansible-test-command.outputs.has-coverage == 'true'
uses: codecov/codecov-action@v3.1.6
uses: codecov/codecov-action@v4.3.1
with:
files: >-
${{
Expand All @@ -682,6 +685,8 @@ runs:
inputs.testing-type
}}=*.xml
flags: ${{ inputs.testing-type }}
token: ${{ inputs.codecov-token }}
working-directory: ${{ steps.collection-metadata.outputs.checkout-path }}
- name: Produce markdown test summary from JUnit
if: always()
Expand Down

0 comments on commit 1c1f673

Please sign in to comment.