Skip to content

Commit 60a1e62

Browse files
fix: deprecate this action
1 parent 47f89e9 commit 60a1e62

File tree

6 files changed

+20
-4
lines changed

6 files changed

+20
-4
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## ⚠️ Deprecation Warning ⚠️
2+
3+
This Action causes issues for users uploading test analytics to Codecov and will be deprecated in favor of the [Codecov action](https://github.com/codecov/codecov-action).
4+
To migrate to using this action, replace `codecov/test-results-action@v?` in your CI pipeline with `codecov/codecov-action@v5` and add `report-type: test_results` as a parameter.
5+
16
## Usage
27

38
Currently, the Action will identify linux, macos, and windows runners. However, the Action may misidentify other architectures. The OS can be specified as

dist/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32567,6 +32567,9 @@ const downloadAndInvokeCLI = (failCi, verbose) => {
3256732567
};
3256832568
try {
3256932569
const failCi = isTrue(core.getInput('fail_ci_if_error'));
32570+
setFailure(`This action is being deprecated in favor of 'codecov-action'.
32571+
Please update CI accordingly to use 'codecov-action@v5' with
32572+
'report-type: test_results'.`, failCi);
3257032573
const binaryPath = core.getInput('binary');
3257132574
const verbose = isTrue(core.getInput('verbose'));
3257232575
if (binaryPath) {

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "setup-codecov-action",
3-
"version": "1.0.0",
3+
"version": "1.2.0",
44
"description": "Upload test result reports to Codecov from GitHub Actions",
55
"main": "index.js",
66
"scripts": {

src/index.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,14 @@ const downloadAndInvokeCLI = (failCi: boolean, verbose: boolean) => {
9595

9696
try {
9797
const failCi = isTrue(core.getInput('fail_ci_if_error'));
98+
99+
setFailure(
100+
`This action is being deprecated in favor of 'codecov-action'.
101+
Please update CI accordingly to use 'codecov-action@v5' with
102+
'report-type: test_results'.`,
103+
failCi,
104+
);
105+
98106
const binaryPath = core.getInput('binary');
99107
const verbose = isTrue(core.getInput('verbose'));
100108

0 commit comments

Comments
 (0)