mirror of
				https://github.com/shivammathur/setup-php.git
				synced 2025-10-31 07:16:22 +07:00 
			
		
		
		
	Move matchers setup to scripts
This commit is contained in:
		
							
								
								
									
										45
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										45
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							| @ -977,49 +977,6 @@ function toCommandValue(input) { | ||||
| exports.toCommandValue = toCommandValue; | ||||
| //# sourceMappingURL=utils.js.map | ||||
|  | ||||
| /***/ }), | ||||
|  | ||||
| /***/ 86: | ||||
| /***/ (function(__unusedmodule, exports, __webpack_require__) { | ||||
|  | ||||
| "use strict"; | ||||
|  | ||||
| var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||||
|     if (k2 === undefined) k2 = k; | ||||
|     Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||||
| }) : (function(o, m, k, k2) { | ||||
|     if (k2 === undefined) k2 = k; | ||||
|     o[k2] = m[k]; | ||||
| })); | ||||
| var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||||
|     Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||||
| }) : function(o, v) { | ||||
|     o["default"] = v; | ||||
| }); | ||||
| var __importStar = (this && this.__importStar) || function (mod) { | ||||
|     if (mod && mod.__esModule) return mod; | ||||
|     var result = {}; | ||||
|     if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||||
|     __setModuleDefault(result, mod); | ||||
|     return result; | ||||
| }; | ||||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||||
| exports.addMatchers = void 0; | ||||
| const path = __importStar(__webpack_require__(622)); | ||||
| const utils = __importStar(__webpack_require__(163)); | ||||
| const io = __importStar(__webpack_require__(1)); | ||||
| /** | ||||
|  * Cache json files for problem matchers | ||||
|  */ | ||||
| async function addMatchers() { | ||||
|     const config_path = path.join(__dirname, '..', 'src', 'configs'); | ||||
|     const runner_dir = await utils.getInput('RUNNER_TOOL_CACHE', false); | ||||
|     await io.cp(path.join(config_path, 'phpunit.json'), runner_dir); | ||||
|     await io.cp(path.join(config_path, 'php.json'), runner_dir); | ||||
| } | ||||
| exports.addMatchers = addMatchers; | ||||
|  | ||||
|  | ||||
| /***/ }), | ||||
|  | ||||
| /***/ 87: | ||||
| @ -2578,7 +2535,6 @@ const coverage = __importStar(__webpack_require__(635)); | ||||
| const extensions = __importStar(__webpack_require__(911)); | ||||
| const tools = __importStar(__webpack_require__(534)); | ||||
| const utils = __importStar(__webpack_require__(163)); | ||||
| const matchers = __importStar(__webpack_require__(86)); | ||||
| /** | ||||
|  * Build the script | ||||
|  * | ||||
| @ -2624,7 +2580,6 @@ async function run() { | ||||
|         const script = os_version + (await utils.scriptExtension(os_version)); | ||||
|         const location = await getScript(script, version, os_version); | ||||
|         await exec_1.exec(await utils.joins(tool, location, version, __dirname)); | ||||
|         await matchers.addMatchers(); | ||||
|     } | ||||
|     catch (error) { | ||||
|         core.setFailed(error.message); | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Shivam Mathur
					Shivam Mathur