Skip to content

Commit 9f33458

Browse files
Copilotneilime
andcommitted
fix: remove container input and always check for missing deps
Co-authored-by: neilime <[email protected]>
1 parent 2d0587f commit 9f33458

File tree

3 files changed

+8
-19
lines changed

3 files changed

+8
-19
lines changed

actions/codecov/README.md

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Codecov Action
22

3-
Action to upload coverage to Codecov with support for container mode.
3+
Action to upload coverage to Codecov.
44

55
## Overview
66

7-
This action handles uploading code coverage to Codecov. When running in container mode, it automatically installs required dependencies (Git, cURL, gnupg) via pkgxdev, fixes configuration issues with unexpanded environment variables, uploads coverage, and then cleans up the installed dependencies.
7+
This action handles uploading code coverage to Codecov. It automatically checks for and installs required dependencies (Git, cURL, gnupg) via pkgxdev if missing, fixes configuration issues with unexpanded environment variables, uploads coverage, and then cleans up the installed dependencies.
88

99
## Usage
1010

@@ -16,22 +16,17 @@ This action handles uploading code coverage to Codecov. When running in containe
1616
#
1717
# Default: `.`
1818
working-directory: .
19-
20-
# Whether running in container mode (installs dependencies if needed)
21-
# Default: `false`
22-
container: "false"
2319
```
2420
2521
## Inputs
2622
27-
| **Input** | **Description** | **Required** | **Default** |
28-
| ----------------------- | ------------------------------------------------------------------- | ------------ | ----------- |
29-
| **`working-directory`** | Working directory where coverage files are located. | **false** | `.` |
30-
| **`container`** | Whether running in container mode (installs dependencies if needed) | **false** | `false` |
23+
| **Input** | **Description** | **Required** | **Default** |
24+
| ----------------------- | --------------------------------------------------- | ------------ | ----------- |
25+
| **`working-directory`** | Working directory where coverage files are located. | **false** | `.` |
3126

3227
## Features
3328

34-
- **Automatic dependency management**: In container mode, automatically detects and installs missing dependencies (Git, cURL, gnupg) using pkgxdev
29+
- **Automatic dependency management**: Automatically detects and installs missing dependencies (Git, cURL, gnupg) using pkgxdev
3530
- **Configuration fixes**: Automatically fixes pkgxdev configuration issues with unexpanded environment variables in gpgconf.ctl and .curlrc files
3631
- **Cleanup**: Uninstalls dependencies after Codecov upload is complete
3732
- **OIDC support**: Uses OIDC authentication with Codecov for secure uploads

actions/codecov/action.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: "Codecov"
2-
description: "Action to upload coverage to Codecov with support for container mode"
2+
description: "Action to upload coverage to Codecov"
33
author: hoverkraft
44
branding:
55
icon: upload-cloud
@@ -12,17 +12,12 @@ inputs:
1212
Can be absolute or relative to the repository root.
1313
required: false
1414
default: "."
15-
container:
16-
description: "Whether running in container mode (installs dependencies if needed)"
17-
required: false
18-
default: "false"
1915

2016
runs:
2117
using: "composite"
2218
steps:
23-
# Check and install dependencies for codecov in container mode
19+
# Check and install dependencies for codecov
2420
- name: Check Codecov dependencies
25-
if: inputs.container == 'true'
2621
id: check-codecov-deps
2722
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
2823
with:

actions/test/action.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,6 @@ runs:
147147
uses: ./self-test-action/codecov
148148
with:
149149
working-directory: ${{ inputs.working-directory }}
150-
container: ${{ inputs.container }}
151150

152151
# FIXME: workaround until will be merged: https://github.com/actions/runner/pull/1684
153152
- shell: bash

0 commit comments

Comments
 (0)