mirror of
https://github.com/codecov/codecov-action.git
synced 2026-04-20 20:32:35 +08:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
894ff025c7 | ||
|
|
f539f977d5 | ||
|
|
6757614f24 | ||
|
|
cdee249da5 | ||
|
|
ce548e935a |
@@ -1,3 +1,12 @@
|
|||||||
|
## 3.1.3
|
||||||
|
### Fixes
|
||||||
|
- #960 fix: allow for aarch64 build
|
||||||
|
|
||||||
|
### Dependencies
|
||||||
|
- #957 build(deps-dev): bump jest-junit from 15.0.0 to 16.0.0
|
||||||
|
- #958 build(deps): bump openpgp from 5.7.0 to 5.8.0
|
||||||
|
- #959 build(deps-dev): bump @types/node from 18.15.10 to 18.15.12
|
||||||
|
|
||||||
## 3.1.2
|
## 3.1.2
|
||||||
### Fixes
|
### Fixes
|
||||||
- #718 Update README.md
|
- #718 Update README.md
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ inputs:
|
|||||||
description: 'Specify a prefix on files listed in the network section of the Codecov report. Useful to help resolve path fixing'
|
description: 'Specify a prefix on files listed in the network section of the Codecov report. Useful to help resolve path fixing'
|
||||||
required: false
|
required: false
|
||||||
os:
|
os:
|
||||||
description: 'Override the assumed OS. Options are alpine | linux | macos | windows.'
|
description: 'Override the assumed OS. Options are aarch64 | alpine | linux | macos | windows.'
|
||||||
required: false
|
required: false
|
||||||
override_branch:
|
override_branch:
|
||||||
description: 'Specify the branch name'
|
description: 'Specify the branch name'
|
||||||
|
|||||||
14
dist/index.js
vendored
14
dist/index.js
vendored
File diff suppressed because one or more lines are too long
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
46
package-lock.json
generated
46
package-lock.json
generated
@@ -1,30 +1,30 @@
|
|||||||
{
|
{
|
||||||
"name": "codecov-action",
|
"name": "codecov-action",
|
||||||
"version": "3.1.2",
|
"version": "3.1.3",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "codecov-action",
|
"name": "codecov-action",
|
||||||
"version": "3.1.2",
|
"version": "3.1.3",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "^1.10.0",
|
"@actions/core": "^1.10.0",
|
||||||
"@actions/exec": "^1.1.1",
|
"@actions/exec": "^1.1.1",
|
||||||
"@actions/github": "^5.1.1",
|
"@actions/github": "^5.1.1",
|
||||||
"node-fetch": "^3.3.1",
|
"node-fetch": "^3.3.1",
|
||||||
"openpgp": "5.7"
|
"openpgp": "5.8"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/jest": "^27.5.0",
|
"@types/jest": "^27.5.0",
|
||||||
"@types/node": "^18.15.10",
|
"@types/node": "^18.15.12",
|
||||||
"@typescript-eslint/eslint-plugin": "^4.29.2",
|
"@typescript-eslint/eslint-plugin": "^4.29.2",
|
||||||
"@typescript-eslint/parser": "^4.29.2",
|
"@typescript-eslint/parser": "^4.29.2",
|
||||||
"@vercel/ncc": "^0.36.1",
|
"@vercel/ncc": "^0.36.1",
|
||||||
"eslint": "^7.32.0",
|
"eslint": "^7.32.0",
|
||||||
"eslint-config-google": "^0.14.0",
|
"eslint-config-google": "^0.14.0",
|
||||||
"jest": "^26.6.3",
|
"jest": "^26.6.3",
|
||||||
"jest-junit": "^15.0.0",
|
"jest-junit": "^16.0.0",
|
||||||
"ts-jest": "^26.5.6",
|
"ts-jest": "^26.5.6",
|
||||||
"typescript": "^4.9.5"
|
"typescript": "^4.9.5"
|
||||||
}
|
}
|
||||||
@@ -1329,9 +1329,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/@types/node": {
|
"node_modules/@types/node": {
|
||||||
"version": "18.15.10",
|
"version": "18.15.12",
|
||||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.15.10.tgz",
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.15.12.tgz",
|
||||||
"integrity": "sha512-9avDaQJczATcXgfmMAW3MIWArOO7A+m90vuCFLr8AotWf8igO/mRoYukrk2cqZVtv38tHs33retzHEilM7FpeQ==",
|
"integrity": "sha512-Wha1UwsB3CYdqUm2PPzh/1gujGCNtWVUYF0mB00fJFoR4gTyWTDPjSm+zBF787Ahw8vSGgBja90MkgFwvB86Dg==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/@types/normalize-package-data": {
|
"node_modules/@types/normalize-package-data": {
|
||||||
@@ -4447,9 +4447,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/jest-junit": {
|
"node_modules/jest-junit": {
|
||||||
"version": "15.0.0",
|
"version": "16.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/jest-junit/-/jest-junit-15.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/jest-junit/-/jest-junit-16.0.0.tgz",
|
||||||
"integrity": "sha512-Z5sVX0Ag3HZdMUnD5DFlG+1gciIFSy7yIVPhOdGUi8YJaI9iLvvBb530gtQL2CHmv0JJeiwRZenr0VrSR7frvg==",
|
"integrity": "sha512-A94mmw6NfJab4Fg/BlvVOUXzXgF0XIH6EmTgJ5NDPp4xoKq0Kr7sErb+4Xs9nZvu58pJojz5RFGpqnZYJTrRfQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"mkdirp": "^1.0.4",
|
"mkdirp": "^1.0.4",
|
||||||
@@ -5535,9 +5535,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/openpgp": {
|
"node_modules/openpgp": {
|
||||||
"version": "5.7.0",
|
"version": "5.8.0",
|
||||||
"resolved": "https://registry.npmjs.org/openpgp/-/openpgp-5.7.0.tgz",
|
"resolved": "https://registry.npmjs.org/openpgp/-/openpgp-5.8.0.tgz",
|
||||||
"integrity": "sha512-wchYJQfFbSaocUvUIYqNrWD+lRSmFSG1d3Ak2CHeXFocDSEsf7Uc1zUzHjSdlZPTvGeeXPQ+MJrwVtalL4QCBg==",
|
"integrity": "sha512-hq4+4s/vpjuwGgZSjplGp4j5FzSz+KwiFRiqMx+ZXr7VCK3CvTkktYilMTZMrf2vHsFH8aQ0596Lmn07HeKRmQ==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"asn1.js": "^5.0.0"
|
"asn1.js": "^5.0.0"
|
||||||
},
|
},
|
||||||
@@ -8847,9 +8847,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"@types/node": {
|
"@types/node": {
|
||||||
"version": "18.15.10",
|
"version": "18.15.12",
|
||||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.15.10.tgz",
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.15.12.tgz",
|
||||||
"integrity": "sha512-9avDaQJczATcXgfmMAW3MIWArOO7A+m90vuCFLr8AotWf8igO/mRoYukrk2cqZVtv38tHs33retzHEilM7FpeQ==",
|
"integrity": "sha512-Wha1UwsB3CYdqUm2PPzh/1gujGCNtWVUYF0mB00fJFoR4gTyWTDPjSm+zBF787Ahw8vSGgBja90MkgFwvB86Dg==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"@types/normalize-package-data": {
|
"@types/normalize-package-data": {
|
||||||
@@ -11211,9 +11211,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"jest-junit": {
|
"jest-junit": {
|
||||||
"version": "15.0.0",
|
"version": "16.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/jest-junit/-/jest-junit-15.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/jest-junit/-/jest-junit-16.0.0.tgz",
|
||||||
"integrity": "sha512-Z5sVX0Ag3HZdMUnD5DFlG+1gciIFSy7yIVPhOdGUi8YJaI9iLvvBb530gtQL2CHmv0JJeiwRZenr0VrSR7frvg==",
|
"integrity": "sha512-A94mmw6NfJab4Fg/BlvVOUXzXgF0XIH6EmTgJ5NDPp4xoKq0Kr7sErb+4Xs9nZvu58pJojz5RFGpqnZYJTrRfQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"mkdirp": "^1.0.4",
|
"mkdirp": "^1.0.4",
|
||||||
@@ -12071,9 +12071,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"openpgp": {
|
"openpgp": {
|
||||||
"version": "5.7.0",
|
"version": "5.8.0",
|
||||||
"resolved": "https://registry.npmjs.org/openpgp/-/openpgp-5.7.0.tgz",
|
"resolved": "https://registry.npmjs.org/openpgp/-/openpgp-5.8.0.tgz",
|
||||||
"integrity": "sha512-wchYJQfFbSaocUvUIYqNrWD+lRSmFSG1d3Ak2CHeXFocDSEsf7Uc1zUzHjSdlZPTvGeeXPQ+MJrwVtalL4QCBg==",
|
"integrity": "sha512-hq4+4s/vpjuwGgZSjplGp4j5FzSz+KwiFRiqMx+ZXr7VCK3CvTkktYilMTZMrf2vHsFH8aQ0596Lmn07HeKRmQ==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"asn1.js": "^5.0.0"
|
"asn1.js": "^5.0.0"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "codecov-action",
|
"name": "codecov-action",
|
||||||
"version": "3.1.2",
|
"version": "3.1.3",
|
||||||
"description": "Upload coverage reports to Codecov from GitHub Actions",
|
"description": "Upload coverage reports to Codecov from GitHub Actions",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@@ -27,18 +27,18 @@
|
|||||||
"@actions/exec": "^1.1.1",
|
"@actions/exec": "^1.1.1",
|
||||||
"@actions/github": "^5.1.1",
|
"@actions/github": "^5.1.1",
|
||||||
"node-fetch": "^3.3.1",
|
"node-fetch": "^3.3.1",
|
||||||
"openpgp": "5.7"
|
"openpgp": "5.8"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/jest": "^27.5.0",
|
"@types/jest": "^27.5.0",
|
||||||
"@types/node": "^18.15.10",
|
"@types/node": "^18.15.12",
|
||||||
"@typescript-eslint/eslint-plugin": "^4.29.2",
|
"@typescript-eslint/eslint-plugin": "^4.29.2",
|
||||||
"@typescript-eslint/parser": "^4.29.2",
|
"@typescript-eslint/parser": "^4.29.2",
|
||||||
"@vercel/ncc": "^0.36.1",
|
"@vercel/ncc": "^0.36.1",
|
||||||
"eslint": "^7.32.0",
|
"eslint": "^7.32.0",
|
||||||
"eslint-config-google": "^0.14.0",
|
"eslint-config-google": "^0.14.0",
|
||||||
"jest": "^26.6.3",
|
"jest": "^26.6.3",
|
||||||
"jest-junit": "^15.0.0",
|
"jest-junit": "^16.0.0",
|
||||||
"ts-jest": "^26.5.6",
|
"ts-jest": "^26.5.6",
|
||||||
"typescript": "^4.9.5"
|
"typescript": "^4.9.5"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ test('getBaseUrl', () => {
|
|||||||
expect(PLATFORMS.map((platform) => {
|
expect(PLATFORMS.map((platform) => {
|
||||||
return getBaseUrl(platform, 'latest');
|
return getBaseUrl(platform, 'latest');
|
||||||
})).toEqual([
|
})).toEqual([
|
||||||
|
'https://uploader.codecov.io/latest/aarch64/codecov',
|
||||||
'https://uploader.codecov.io/latest/alpine/codecov',
|
'https://uploader.codecov.io/latest/alpine/codecov',
|
||||||
'https://uploader.codecov.io/latest/linux/codecov',
|
'https://uploader.codecov.io/latest/linux/codecov',
|
||||||
'https://uploader.codecov.io/latest/macos/codecov',
|
'https://uploader.codecov.io/latest/macos/codecov',
|
||||||
@@ -48,6 +49,7 @@ test('getBaseUrl', () => {
|
|||||||
expect(PLATFORMS.map((platform) => {
|
expect(PLATFORMS.map((platform) => {
|
||||||
return getBaseUrl(platform, 'v0.1.0_8880');
|
return getBaseUrl(platform, 'v0.1.0_8880');
|
||||||
})).toEqual([
|
})).toEqual([
|
||||||
|
'https://uploader.codecov.io/v0.1.0_8880/aarch64/codecov',
|
||||||
'https://uploader.codecov.io/v0.1.0_8880/alpine/codecov',
|
'https://uploader.codecov.io/v0.1.0_8880/alpine/codecov',
|
||||||
'https://uploader.codecov.io/v0.1.0_8880/linux/codecov',
|
'https://uploader.codecov.io/v0.1.0_8880/linux/codecov',
|
||||||
'https://uploader.codecov.io/v0.1.0_8880/macos/codecov',
|
'https://uploader.codecov.io/v0.1.0_8880/macos/codecov',
|
||||||
@@ -58,13 +60,13 @@ test('getBaseUrl', () => {
|
|||||||
test('isWindows', () => {
|
test('isWindows', () => {
|
||||||
expect(PLATFORMS.map((platform) => {
|
expect(PLATFORMS.map((platform) => {
|
||||||
return isWindows(platform);
|
return isWindows(platform);
|
||||||
})).toEqual([false, false, false, true]);
|
})).toEqual([false, false, false, false, true]);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('isValidPlatform', () => {
|
test('isValidPlatform', () => {
|
||||||
expect(PLATFORMS.map((platform) => {
|
expect(PLATFORMS.map((platform) => {
|
||||||
return isValidPlatform(platform);
|
return isValidPlatform(platform);
|
||||||
})).toEqual([true, true, true, true]);
|
})).toEqual([true, true, true, true, true]);
|
||||||
|
|
||||||
expect(isValidPlatform('fakeos')).toBeFalsy();
|
expect(isValidPlatform('fakeos')).toBeFalsy();
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,6 +1,12 @@
|
|||||||
import * as core from '@actions/core';
|
import * as core from '@actions/core';
|
||||||
|
|
||||||
const PLATFORMS = ['alpine', 'linux', 'macos', 'windows'];
|
const PLATFORMS = [
|
||||||
|
'aarch64',
|
||||||
|
'alpine',
|
||||||
|
'linux',
|
||||||
|
'macos',
|
||||||
|
'windows',
|
||||||
|
];
|
||||||
|
|
||||||
const setFailure = (message: string, failCi: boolean): void => {
|
const setFailure = (message: string, failCi: boolean): void => {
|
||||||
failCi ? core.setFailed(message) : core.warning(message);
|
failCi ? core.setFailed(message) : core.warning(message);
|
||||||
|
|||||||
Reference in New Issue
Block a user