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

Allow to explicitly pass the codecov token; bump codecov action to version 4 #82

Merged
merged 2 commits into from
Jul 2, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
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 }}
webknjaz marked this conversation as resolved.
Show resolved Hide resolved

- name: Produce markdown test summary from JUnit
if: always()
Expand Down
Loading