diff --git a/action.yml b/action.yml index 19e56ec..2e61da6 100644 --- a/action.yml +++ b/action.yml @@ -20,83 +20,6 @@ inputs: runs: using: "composite" steps: - - name: Check out the code - uses: actions/checkout@v3 - id: checkout - with: - repository: ${{ github.event.pull_request.head.repo.full_name }} - ref: ${{ github.event.pull_request.head.ref }} - fetch-depth: 0 - - - name: Configure Node.js 18 - uses: actions/setup-node@v3 - with: - node-version: "18" - if: ${{ inputs.lang-setup == 'all' || contains(inputs.lang-setup, 'node') }} - - - name: Detect Languages - id: detect-languages - run: node ${{ github.action_path }}/detect-lang/dist/index.js - shell: bash - - - name: Configure JDK 16 - uses: actions/setup-java@v3 - if: ${{ (inputs.lang-setup == 'all' || contains(inputs.lang-setup, 'jdk')) && fromJSON(steps.detect-languages.outputs.languages).java }} - with: - java-version: "16" - distribution: "zulu" - - # CodeSee Maps Go support uses a static binary so there's no setup step required. - - - name: Configure Python 3.x - uses: actions/setup-python@v4 - if: ${{ (inputs.lang-setup == 'all' || contains(inputs.lang-setup, 'python')) && fromJSON(steps.detect-languages.outputs.languages).python }} - with: - python-version: "3.x" - architecture: "x64" - - # We need the rust toolchain because it uses rustc and cargo to inspect the package - - name: Configure Rust 1.x stable - uses: Codesee-io/rust-toolchain@stable - if: ${{ (inputs.lang-setup == 'all' || contains(inputs.lang-setup, 'rust')) && fromJSON(steps.detect-languages.outputs.languages).rust }} - - - name: Configure .NET SDK 7 - uses: actions/setup-dotnet@v3 - if: ${{ (inputs.lang-setup == 'all' || contains(inputs.lang-setup, '.net')) && fromJSON(steps.detect-languages.outputs.languages).dot-net }} - with: - dotnet-version: "7.x" - dotnet-quality: "ga" - - - name: Generate Map - id: generate-map - run: node ${{ github.action_path }}/map/dist/index.js - shell: bash - env: - step: map - api_token: ${{ inputs.codesee-token }} - github_ref: ${{ github.ref }} - languages: ${{ steps.detect-languages.outputs.languages }} - codesee_url: ${{ inputs.codesee-url }} - NODE_OPTIONS: --max-old-space-size=6144 - - - name: Upload Map - id: upload-map - run: node ${{ github.action_path }}/map/dist/index.js - shell: bash - env: - step: mapUpload - api_token: ${{ inputs.codesee-token }} - github_ref: ${{ github.ref }} - codesee_url: ${{ inputs.codesee-url }} - NODE_OPTIONS: --max-old-space-size=6144 - - - name: Insights - id: insights - run: node ${{ github.action_path }}/map/dist/index.js + - name: CodeSee No-Op shell: bash - env: - step: insights - api_token: ${{ inputs.codesee-token }} - github_ref: ${{ github.ref }} - codesee_url: ${{ inputs.codesee-url }} - NODE_OPTIONS: --max-old-space-size=6144 + run: echo "CodeSee no longer needs the action to run" diff --git a/detect-lang/dist/index.js b/detect-lang/dist/index.js index 389763a..d09440a 100644 --- a/detect-lang/dist/index.js +++ b/detect-lang/dist/index.js @@ -4160,8 +4160,8 @@ async function removeNpmrc() { } async function main() { - await core.group("Removing .npmrc if exists", removeNpmrc); - await core.group("Detect Languages", runCodeseeDetectLanguages); + // await core.group("Removing .npmrc if exists", removeNpmrc); + // await core.group("Detect Languages", runCodeseeDetectLanguages); } main() diff --git a/detect-lang/src/action.js b/detect-lang/src/action.js index d1202f7..745cdec 100644 --- a/detect-lang/src/action.js +++ b/detect-lang/src/action.js @@ -35,8 +35,8 @@ async function removeNpmrc() { } async function main() { - await core.group("Removing .npmrc if exists", removeNpmrc); - await core.group("Detect Languages", runCodeseeDetectLanguages); + // await core.group("Removing .npmrc if exists", removeNpmrc); + // await core.group("Detect Languages", runCodeseeDetectLanguages); } main() diff --git a/map/dist/index.js b/map/dist/index.js index 96d9d9a..d574d28 100644 --- a/map/dist/index.js +++ b/map/dist/index.js @@ -27,7 +27,7 @@ var __importStar = (this && this.__importStar) || function (mod) { }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.issue = exports.issueCommand = void 0; -const os = __importStar(__nccwpck_require__(37)); +const os = __importStar(__nccwpck_require__(87)); const utils_1 = __nccwpck_require__(468); /** * Commands @@ -138,8 +138,8 @@ exports.getIDToken = exports.getState = exports.saveState = exports.group = expo const command_1 = __nccwpck_require__(96); const file_command_1 = __nccwpck_require__(363); const utils_1 = __nccwpck_require__(468); -const os = __importStar(__nccwpck_require__(37)); -const path = __importStar(__nccwpck_require__(17)); +const os = __importStar(__nccwpck_require__(87)); +const path = __importStar(__nccwpck_require__(622)); const oidc_utils_1 = __nccwpck_require__(386); /** * The code to exit an action @@ -472,8 +472,8 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports.prepareKeyValueMessage = exports.issueFileCommand = void 0; // We use any as a valid input type /* eslint-disable @typescript-eslint/no-explicit-any */ -const fs = __importStar(__nccwpck_require__(147)); -const os = __importStar(__nccwpck_require__(37)); +const fs = __importStar(__nccwpck_require__(747)); +const os = __importStar(__nccwpck_require__(87)); const uuid_1 = __nccwpck_require__(357); const utils_1 = __nccwpck_require__(468); function issueFileCommand(command, message) { @@ -618,7 +618,7 @@ var __importStar = (this && this.__importStar) || function (mod) { }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.toPlatformPath = exports.toWin32Path = exports.toPosixPath = void 0; -const path = __importStar(__nccwpck_require__(17)); +const path = __importStar(__nccwpck_require__(622)); /** * toPosixPath converts the given path to the posix form. On Windows, \\ will be * replaced with /. @@ -673,8 +673,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.summary = exports.markdownSummary = exports.SUMMARY_DOCS_URL = exports.SUMMARY_ENV_VAR = void 0; -const os_1 = __nccwpck_require__(37); -const fs_1 = __nccwpck_require__(147); +const os_1 = __nccwpck_require__(87); +const fs_1 = __nccwpck_require__(747); const { access, appendFile, writeFile } = fs_1.promises; exports.SUMMARY_ENV_VAR = 'GITHUB_STEP_SUMMARY'; exports.SUMMARY_DOCS_URL = 'https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary'; @@ -1029,7 +1029,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getExecOutput = exports.exec = void 0; -const string_decoder_1 = __nccwpck_require__(576); +const string_decoder_1 = __nccwpck_require__(304); const tr = __importStar(__nccwpck_require__(343)); /** * Exec a command. @@ -1139,13 +1139,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.argStringToArray = exports.ToolRunner = void 0; -const os = __importStar(__nccwpck_require__(37)); -const events = __importStar(__nccwpck_require__(361)); -const child = __importStar(__nccwpck_require__(81)); -const path = __importStar(__nccwpck_require__(17)); +const os = __importStar(__nccwpck_require__(87)); +const events = __importStar(__nccwpck_require__(614)); +const child = __importStar(__nccwpck_require__(129)); +const path = __importStar(__nccwpck_require__(622)); const io = __importStar(__nccwpck_require__(6)); -const ioUtil = __importStar(__nccwpck_require__(16)); -const timers_1 = __nccwpck_require__(512); +const ioUtil = __importStar(__nccwpck_require__(644)); +const timers_1 = __nccwpck_require__(213); /* eslint-disable @typescript-eslint/unbound-method */ const IS_WINDOWS = process.platform === 'win32'; /* @@ -1853,8 +1853,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.HttpClient = exports.isHttps = exports.HttpClientResponse = exports.HttpClientError = exports.getProxyUrl = exports.MediaTypes = exports.Headers = exports.HttpCodes = void 0; -const http = __importStar(__nccwpck_require__(685)); -const https = __importStar(__nccwpck_require__(687)); +const http = __importStar(__nccwpck_require__(605)); +const https = __importStar(__nccwpck_require__(211)); const pm = __importStar(__nccwpck_require__(870)); const tunnel = __importStar(__nccwpck_require__(642)); var HttpCodes; @@ -2497,7 +2497,7 @@ exports.checkBypass = checkBypass; /***/ }), -/***/ 16: +/***/ 644: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -2533,8 +2533,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge var _a; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getCmdPath = exports.tryGetExecutablePath = exports.isRooted = exports.isDirectory = exports.exists = exports.IS_WINDOWS = exports.unlink = exports.symlink = exports.stat = exports.rmdir = exports.rename = exports.readlink = exports.readdir = exports.mkdir = exports.lstat = exports.copyFile = exports.chmod = void 0; -const fs = __importStar(__nccwpck_require__(147)); -const path = __importStar(__nccwpck_require__(17)); +const fs = __importStar(__nccwpck_require__(747)); +const path = __importStar(__nccwpck_require__(622)); _a = fs.promises, exports.chmod = _a.chmod, exports.copyFile = _a.copyFile, exports.lstat = _a.lstat, exports.mkdir = _a.mkdir, exports.readdir = _a.readdir, exports.readlink = _a.readlink, exports.rename = _a.rename, exports.rmdir = _a.rmdir, exports.stat = _a.stat, exports.symlink = _a.symlink, exports.unlink = _a.unlink; exports.IS_WINDOWS = process.platform === 'win32'; function exists(fsPath) { @@ -2716,11 +2716,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.findInPath = exports.which = exports.mkdirP = exports.rmRF = exports.mv = exports.cp = void 0; -const assert_1 = __nccwpck_require__(491); -const childProcess = __importStar(__nccwpck_require__(81)); -const path = __importStar(__nccwpck_require__(17)); -const util_1 = __nccwpck_require__(837); -const ioUtil = __importStar(__nccwpck_require__(16)); +const assert_1 = __nccwpck_require__(59); +const childProcess = __importStar(__nccwpck_require__(129)); +const path = __importStar(__nccwpck_require__(622)); +const util_1 = __nccwpck_require__(669); +const ioUtil = __importStar(__nccwpck_require__(644)); const exec = util_1.promisify(childProcess.exec); const execFile = util_1.promisify(childProcess.execFile); /** @@ -3043,13 +3043,13 @@ module.exports = __nccwpck_require__(962); "use strict"; -var net = __nccwpck_require__(808); -var tls = __nccwpck_require__(404); -var http = __nccwpck_require__(685); -var https = __nccwpck_require__(687); -var events = __nccwpck_require__(361); -var assert = __nccwpck_require__(491); -var util = __nccwpck_require__(837); +var net = __nccwpck_require__(631); +var tls = __nccwpck_require__(16); +var http = __nccwpck_require__(605); +var https = __nccwpck_require__(211); +var events = __nccwpck_require__(614); +var assert = __nccwpck_require__(59); +var util = __nccwpck_require__(669); exports.httpOverHttp = httpOverHttp; @@ -3404,9 +3404,9 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = void 0; +exports.default = void 0; -var _crypto = _interopRequireDefault(__nccwpck_require__(113)); +var _crypto = _interopRequireDefault(__nccwpck_require__(417)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -3421,7 +3421,7 @@ function md5(bytes) { } var _default = md5; -exports["default"] = _default; +exports.default = _default; /***/ }), @@ -3434,9 +3434,9 @@ exports["default"] = _default; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = void 0; +exports.default = void 0; var _default = '00000000-0000-0000-0000-000000000000'; -exports["default"] = _default; +exports.default = _default; /***/ }), @@ -3449,7 +3449,7 @@ exports["default"] = _default; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = void 0; +exports.default = void 0; var _validate = _interopRequireDefault(__nccwpck_require__(269)); @@ -3488,7 +3488,7 @@ function parse(uuid) { } var _default = parse; -exports["default"] = _default; +exports.default = _default; /***/ }), @@ -3501,9 +3501,9 @@ exports["default"] = _default; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = void 0; +exports.default = void 0; var _default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i; -exports["default"] = _default; +exports.default = _default; /***/ }), @@ -3516,9 +3516,9 @@ exports["default"] = _default; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = rng; +exports.default = rng; -var _crypto = _interopRequireDefault(__nccwpck_require__(113)); +var _crypto = _interopRequireDefault(__nccwpck_require__(417)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -3547,9 +3547,9 @@ function rng() { Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = void 0; +exports.default = void 0; -var _crypto = _interopRequireDefault(__nccwpck_require__(113)); +var _crypto = _interopRequireDefault(__nccwpck_require__(417)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -3564,7 +3564,7 @@ function sha1(bytes) { } var _default = sha1; -exports["default"] = _default; +exports.default = _default; /***/ }), @@ -3577,7 +3577,7 @@ exports["default"] = _default; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = void 0; +exports.default = void 0; var _validate = _interopRequireDefault(__nccwpck_require__(269)); @@ -3610,7 +3610,7 @@ function stringify(arr, offset = 0) { } var _default = stringify; -exports["default"] = _default; +exports.default = _default; /***/ }), @@ -3623,7 +3623,7 @@ exports["default"] = _default; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = void 0; +exports.default = void 0; var _rng = _interopRequireDefault(__nccwpck_require__(975)); @@ -3724,7 +3724,7 @@ function v1(options, buf, offset) { } var _default = v1; -exports["default"] = _default; +exports.default = _default; /***/ }), @@ -3737,7 +3737,7 @@ exports["default"] = _default; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = void 0; +exports.default = void 0; var _v = _interopRequireDefault(__nccwpck_require__(39)); @@ -3747,7 +3747,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de const v3 = (0, _v.default)('v3', 0x30, _md.default); var _default = v3; -exports["default"] = _default; +exports.default = _default; /***/ }), @@ -3760,7 +3760,7 @@ exports["default"] = _default; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = _default; +exports.default = _default; exports.URL = exports.DNS = void 0; var _stringify = _interopRequireDefault(__nccwpck_require__(619)); @@ -3845,7 +3845,7 @@ function _default(name, version, hashfunc) { Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = void 0; +exports.default = void 0; var _rng = _interopRequireDefault(__nccwpck_require__(975)); @@ -3876,7 +3876,7 @@ function v4(options, buf, offset) { } var _default = v4; -exports["default"] = _default; +exports.default = _default; /***/ }), @@ -3889,7 +3889,7 @@ exports["default"] = _default; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = void 0; +exports.default = void 0; var _v = _interopRequireDefault(__nccwpck_require__(39)); @@ -3899,7 +3899,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de const v5 = (0, _v.default)('v5', 0x50, _sha.default); var _default = v5; -exports["default"] = _default; +exports.default = _default; /***/ }), @@ -3912,7 +3912,7 @@ exports["default"] = _default; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = void 0; +exports.default = void 0; var _regex = _interopRequireDefault(__nccwpck_require__(256)); @@ -3923,7 +3923,7 @@ function validate(uuid) { } var _default = validate; -exports["default"] = _default; +exports.default = _default; /***/ }), @@ -3936,7 +3936,7 @@ exports["default"] = _default; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = void 0; +exports.default = void 0; var _validate = _interopRequireDefault(__nccwpck_require__(269)); @@ -3951,7 +3951,7 @@ function version(uuid) { } var _default = version; -exports["default"] = _default; +exports.default = _default; /***/ }), @@ -3961,12 +3961,12 @@ exports["default"] = _default; const core = __nccwpck_require__(699); const exec = __nccwpck_require__(922); -const INSIGHTS = [ +const INSIGHTS = (/* unused pure expression or super */ null && ([ "commitCountLast30Days", "lastCommitDate", "createDate", "linesOfCode", -]; +])); module.exports = { run, @@ -4015,22 +4015,22 @@ async function uploadInsight(config, insightType) { async function run(config) { let exitCode = 0; - for (const insightType of INSIGHTS) { - const stepExitCode = await core.group( - `Collecting ${insightType}`, - async () => collectInsight(insightType) - ); - exitCode += stepExitCode; - if (stepExitCode !== 0) { - core.error("Generation Step failed with exit code ${stepExitCode}"); - } else if (config.skipUpload) { - core.info(`Skipping ${insightType} upload`); - } else { - exitCode += await core.group(`Uploading ${insightType}`, async () => - uploadInsight(config, insightType) - ); - } - } + // for (const insightType of INSIGHTS) { + // const stepExitCode = await core.group( + // `Collecting ${insightType}`, + // async () => collectInsight(insightType) + // ); + // exitCode += stepExitCode; + // if (stepExitCode !== 0) { + // core.error("Generation Step failed with exit code ${stepExitCode}"); + // } else if (config.skipUpload) { + // core.info(`Skipping ${insightType} upload`); + // } else { + // exitCode += await core.group(`Uploading ${insightType}`, async () => + // uploadInsight(config, insightType) + // ); + // } + // } return exitCode; } @@ -4038,115 +4038,115 @@ async function run(config) { /***/ }), -/***/ 491: +/***/ 59: /***/ ((module) => { "use strict"; -module.exports = require("assert"); +module.exports = require("assert");; /***/ }), -/***/ 81: +/***/ 129: /***/ ((module) => { "use strict"; -module.exports = require("child_process"); +module.exports = require("child_process");; /***/ }), -/***/ 113: +/***/ 417: /***/ ((module) => { "use strict"; -module.exports = require("crypto"); +module.exports = require("crypto");; /***/ }), -/***/ 361: +/***/ 614: /***/ ((module) => { "use strict"; -module.exports = require("events"); +module.exports = require("events");; /***/ }), -/***/ 147: +/***/ 747: /***/ ((module) => { "use strict"; -module.exports = require("fs"); +module.exports = require("fs");; /***/ }), -/***/ 685: +/***/ 605: /***/ ((module) => { "use strict"; -module.exports = require("http"); +module.exports = require("http");; /***/ }), -/***/ 687: +/***/ 211: /***/ ((module) => { "use strict"; -module.exports = require("https"); +module.exports = require("https");; /***/ }), -/***/ 808: +/***/ 631: /***/ ((module) => { "use strict"; -module.exports = require("net"); +module.exports = require("net");; /***/ }), -/***/ 37: +/***/ 87: /***/ ((module) => { "use strict"; -module.exports = require("os"); +module.exports = require("os");; /***/ }), -/***/ 17: +/***/ 622: /***/ ((module) => { "use strict"; -module.exports = require("path"); +module.exports = require("path");; /***/ }), -/***/ 576: +/***/ 304: /***/ ((module) => { "use strict"; -module.exports = require("string_decoder"); +module.exports = require("string_decoder");; /***/ }), -/***/ 512: +/***/ 213: /***/ ((module) => { "use strict"; -module.exports = require("timers"); +module.exports = require("timers");; /***/ }), -/***/ 404: +/***/ 16: /***/ ((module) => { "use strict"; -module.exports = require("tls"); +module.exports = require("tls");; /***/ }), -/***/ 837: +/***/ 669: /***/ ((module) => { "use strict"; -module.exports = require("util"); +module.exports = require("util");; /***/ }) @@ -4185,13 +4185,11 @@ module.exports = require("util"); /************************************************************************/ /******/ /* webpack/runtime/compat */ /******/ -/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/"; -/******/ -/************************************************************************/ +/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";/************************************************************************/ var __webpack_exports__ = {}; // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk. (() => { -const fs = __nccwpck_require__(147); +const fs = __nccwpck_require__(747); const core = __nccwpck_require__(699); const exec = __nccwpck_require__(922); const insightsAction = __nccwpck_require__(436); @@ -4527,28 +4525,26 @@ async function requireApiToken(data) { } async function main() { - const stepMap = new Map([ - ["map", [generate]], - ["mapUpload", [requireApiToken, upload]], - ["insights", [requireApiToken, insights]], - ["legacy", [requireApiToken, generate, upload, insights]], - ]); - const data = await setup(); - const step = data.config.step; - - if (!stepMap.has(step)) { - core.error( - `Unable to find run configuration for ${step}. Should be one of ${[ - ...stepMap.keys(), - ].join(", ")}` - ); - return; - } - - for (const stepFunc of stepMap.get(step)) { - core.info(`Running step ${stepFunc.name}`); - await stepFunc(data); - } + // const stepMap = new Map([ + // ["map", [generate]], + // ["mapUpload", [requireApiToken, upload]], + // ["insights", [requireApiToken, insights]], + // ["legacy", [requireApiToken, generate, upload, insights]], + // ]); + // const data = await setup(); + // const step = data.config.step; + // if (!stepMap.has(step)) { + // core.error( + // `Unable to find run configuration for ${step}. Should be one of ${[ + // ...stepMap.keys(), + // ].join(", ")}` + // ); + // return; + // } + // for (const stepFunc of stepMap.get(step)) { + // core.info(`Running step ${stepFunc.name}`); + // await stepFunc(data); + // } } main() diff --git a/map/dist/licenses.txt b/map/dist/licenses.txt index d771846..cc49767 100644 --- a/map/dist/licenses.txt +++ b/map/dist/licenses.txt @@ -59,6 +59,16 @@ The above copyright notice and this permission notice shall be included in all c THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +@vercel/ncc +MIT +Copyright 2018 ZEIT, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + tunnel MIT The MIT License (MIT) diff --git a/map/src/action.js b/map/src/action.js index 330ca27..2602a0f 100644 --- a/map/src/action.js +++ b/map/src/action.js @@ -334,28 +334,26 @@ async function requireApiToken(data) { } async function main() { - const stepMap = new Map([ - ["map", [generate]], - ["mapUpload", [requireApiToken, upload]], - ["insights", [requireApiToken, insights]], - ["legacy", [requireApiToken, generate, upload, insights]], - ]); - const data = await setup(); - const step = data.config.step; - - if (!stepMap.has(step)) { - core.error( - `Unable to find run configuration for ${step}. Should be one of ${[ - ...stepMap.keys(), - ].join(", ")}` - ); - return; - } - - for (const stepFunc of stepMap.get(step)) { - core.info(`Running step ${stepFunc.name}`); - await stepFunc(data); - } + // const stepMap = new Map([ + // ["map", [generate]], + // ["mapUpload", [requireApiToken, upload]], + // ["insights", [requireApiToken, insights]], + // ["legacy", [requireApiToken, generate, upload, insights]], + // ]); + // const data = await setup(); + // const step = data.config.step; + // if (!stepMap.has(step)) { + // core.error( + // `Unable to find run configuration for ${step}. Should be one of ${[ + // ...stepMap.keys(), + // ].join(", ")}` + // ); + // return; + // } + // for (const stepFunc of stepMap.get(step)) { + // core.info(`Running step ${stepFunc.name}`); + // await stepFunc(data); + // } } main() diff --git a/map/src/insights.js b/map/src/insights.js index 9d94c33..7ebdd9f 100644 --- a/map/src/insights.js +++ b/map/src/insights.js @@ -55,22 +55,22 @@ async function uploadInsight(config, insightType) { async function run(config) { let exitCode = 0; - for (const insightType of INSIGHTS) { - const stepExitCode = await core.group( - `Collecting ${insightType}`, - async () => collectInsight(insightType) - ); - exitCode += stepExitCode; - if (stepExitCode !== 0) { - core.error("Generation Step failed with exit code ${stepExitCode}"); - } else if (config.skipUpload) { - core.info(`Skipping ${insightType} upload`); - } else { - exitCode += await core.group(`Uploading ${insightType}`, async () => - uploadInsight(config, insightType) - ); - } - } + // for (const insightType of INSIGHTS) { + // const stepExitCode = await core.group( + // `Collecting ${insightType}`, + // async () => collectInsight(insightType) + // ); + // exitCode += stepExitCode; + // if (stepExitCode !== 0) { + // core.error("Generation Step failed with exit code ${stepExitCode}"); + // } else if (config.skipUpload) { + // core.info(`Skipping ${insightType} upload`); + // } else { + // exitCode += await core.group(`Uploading ${insightType}`, async () => + // uploadInsight(config, insightType) + // ); + // } + // } return exitCode; }