mirror of
https://github.com/codecov/codecov-action.git
synced 2025-12-23 20:27:02 +08:00
lint
This commit is contained in:
15
dist/index.js
vendored
15
dist/index.js
vendored
@@ -1101,6 +1101,18 @@ function onceStrict (fn) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 52:
|
||||||
|
/***/ (function(__unusedmodule, exports) {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
exports.__esModule = true;
|
||||||
|
var VERSION = 'v1.5.0';
|
||||||
|
exports["default"] = VERSION;
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
/***/ 82:
|
/***/ 82:
|
||||||
@@ -7176,6 +7188,7 @@ exports.checkBypass = checkBypass;
|
|||||||
exports.__esModule = true;
|
exports.__esModule = true;
|
||||||
var core = __webpack_require__(470);
|
var core = __webpack_require__(470);
|
||||||
var github = __webpack_require__(469);
|
var github = __webpack_require__(469);
|
||||||
|
var VERSION = __webpack_require__(52);
|
||||||
var context = github.context;
|
var context = github.context;
|
||||||
var isTrue = function (variable) {
|
var isTrue = function (variable) {
|
||||||
var lowercase = variable.toLowerCase();
|
var lowercase = variable.toLowerCase();
|
||||||
@@ -7220,7 +7233,7 @@ var buildExec = function () {
|
|||||||
var filepath = workingDir ?
|
var filepath = workingDir ?
|
||||||
workingDir + '/codecov.sh' : 'codecov.sh';
|
workingDir + '/codecov.sh' : 'codecov.sh';
|
||||||
var execArgs = [filepath];
|
var execArgs = [filepath];
|
||||||
execArgs.push('-n', "" + name, '-F', "" + flags, '-Q', 'github-action-1.5.1');
|
execArgs.push('-n', "" + name, '-F', "" + flags, '-Q', "github-action-" + VERSION);
|
||||||
var options = {};
|
var options = {};
|
||||||
options.env = Object.assign(process.env, {
|
options.env = Object.assign(process.env, {
|
||||||
GITHUB_ACTION: process.env.GITHUB_ACTION,
|
GITHUB_ACTION: process.env.GITHUB_ACTION,
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
import buildExec from './buildExec';
|
import buildExec from './buildExec';
|
||||||
const github = require('@actions/github');
|
const github = require('@actions/github');
|
||||||
|
|
||||||
|
const VERSION = require('./version');
|
||||||
|
|
||||||
const context = github.context;
|
const context = github.context;
|
||||||
|
|
||||||
test('no arguments', () => {
|
test('no arguments', () => {
|
||||||
@@ -12,7 +15,7 @@ test('no arguments', () => {
|
|||||||
'-F',
|
'-F',
|
||||||
'',
|
'',
|
||||||
'-Q',
|
'-Q',
|
||||||
'github-action',
|
`github-action-${VERSION}`,
|
||||||
];
|
];
|
||||||
if (context.eventName == 'pull_request') {
|
if (context.eventName == 'pull_request') {
|
||||||
args.push('-C', `${context.payload.pull_request.head.sha}`);
|
args.push('-C', `${context.payload.pull_request.head.sha}`);
|
||||||
@@ -70,7 +73,7 @@ test('all arguments', () => {
|
|||||||
'-F',
|
'-F',
|
||||||
'test',
|
'test',
|
||||||
'-Q',
|
'-Q',
|
||||||
'github-action',
|
`github-action-${VERSION}`,
|
||||||
'-c',
|
'-c',
|
||||||
'-N',
|
'-N',
|
||||||
'83231650328f11695dfb754ca0f540516f188d27',
|
'83231650328f11695dfb754ca0f540516f188d27',
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
const core = require('@actions/core');
|
const core = require('@actions/core');
|
||||||
const github = require('@actions/github');
|
const github = require('@actions/github');
|
||||||
|
|
||||||
|
const VERSION = require('./version');
|
||||||
|
|
||||||
const context = github.context;
|
const context = github.context;
|
||||||
|
|
||||||
const isTrue = (variable) => {
|
const isTrue = (variable) => {
|
||||||
@@ -51,7 +53,14 @@ const buildExec = () => {
|
|||||||
workingDir + '/codecov.sh' : 'codecov.sh';
|
workingDir + '/codecov.sh' : 'codecov.sh';
|
||||||
|
|
||||||
const execArgs = [filepath];
|
const execArgs = [filepath];
|
||||||
execArgs.push( '-n', `${name}`, '-F', `${flags}`, '-Q', 'github-action-1.5.1' );
|
execArgs.push(
|
||||||
|
'-n',
|
||||||
|
`${name}`,
|
||||||
|
'-F',
|
||||||
|
`${flags}`,
|
||||||
|
'-Q',
|
||||||
|
`github-action-${VERSION}`,
|
||||||
|
);
|
||||||
|
|
||||||
const options:any = {};
|
const options:any = {};
|
||||||
options.env = Object.assign(process.env, {
|
options.env = Object.assign(process.env, {
|
||||||
|
|||||||
3
src/version.ts
Normal file
3
src/version.ts
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
const VERSION = 'v1.5.0';
|
||||||
|
|
||||||
|
export default VERSION;
|
||||||
Reference in New Issue
Block a user