mirror of
https://github.com/codecov/codecov-action.git
synced 2026-04-18 20:02:34 +08:00
fix: CLI option names for uploader (#969)
Only single character aliases can be specified with a single dash (-).
This commit is contained in:
committed by
GitHub
parent
b4dfea724f
commit
1c34415a06
@@ -115,7 +115,7 @@ const buildExec = () => {
|
||||
});
|
||||
}
|
||||
if (fullReport) {
|
||||
execArgs.push('-full', `${fullReport}`);
|
||||
execArgs.push('--full', `${fullReport}`);
|
||||
}
|
||||
if (flags) {
|
||||
flags.split(',').map((f) => f.trim()).forEach((f) => {
|
||||
@@ -127,23 +127,23 @@ const buildExec = () => {
|
||||
execArgs.push('-g');
|
||||
}
|
||||
if (gcovArgs) {
|
||||
execArgs.push('-gcovArgs', `${gcovArgs}`);
|
||||
execArgs.push('--ga', `${gcovArgs}`);
|
||||
}
|
||||
if (gcovIgnore) {
|
||||
execArgs.push('-gcovIgnore', `${gcovIgnore}`);
|
||||
execArgs.push('--gi', `${gcovIgnore}`);
|
||||
}
|
||||
if (gcovInclude) {
|
||||
execArgs.push('-gcovInclude', `${gcovInclude}`);
|
||||
execArgs.push('--gI', `${gcovInclude}`);
|
||||
}
|
||||
if (gcovExecutable) {
|
||||
execArgs.push('-gcovExecutable', `${gcovExecutable}`);
|
||||
execArgs.push('--gx', `${gcovExecutable}`);
|
||||
}
|
||||
|
||||
if (networkFilter) {
|
||||
execArgs.push('-networkFilter', `${networkFilter}`);
|
||||
execArgs.push('-i', `${networkFilter}`);
|
||||
}
|
||||
if (networkPrefix) {
|
||||
execArgs.push('-networkPrefix', `${networkPrefix}`);
|
||||
execArgs.push('-k', `${networkPrefix}`);
|
||||
}
|
||||
|
||||
if (overrideBranch) {
|
||||
@@ -180,10 +180,10 @@ const buildExec = () => {
|
||||
execArgs.push('-r', `${slug}`);
|
||||
}
|
||||
if (swift) {
|
||||
execArgs.push('-xs');
|
||||
execArgs.push('--xs');
|
||||
}
|
||||
if (swift && swiftProject) {
|
||||
execArgs.push('-xsp', `${swiftProject}`);
|
||||
execArgs.push('--xsp', `${swiftProject}`);
|
||||
}
|
||||
if (upstream) {
|
||||
execArgs.push('-U', `${upstream}`);
|
||||
@@ -195,8 +195,8 @@ const buildExec = () => {
|
||||
execArgs.push('-v');
|
||||
}
|
||||
if (xcode && xcodeArchivePath) {
|
||||
execArgs.push('-xc');
|
||||
execArgs.push('-xp', `${xcodeArchivePath}`);
|
||||
execArgs.push('--xc');
|
||||
execArgs.push('--xp', `${xcodeArchivePath}`);
|
||||
}
|
||||
|
||||
if (uploaderVersion == '') {
|
||||
|
||||
Reference in New Issue
Block a user