Add problem matcher for PHP native errors

This commit is contained in:
Shivam Mathur
2020-02-14 01:26:09 +05:30
parent 17241e2689
commit 3a2ca44a8a
4 changed files with 54 additions and 12 deletions

View File

@ -6,13 +6,8 @@ import * as io from '@actions/io';
* Cache json files for problem matchers
*/
export async function addMatchers(): Promise<void> {
const config_path = path.join(
__dirname,
'..',
'src',
'configs',
'phpunit.json'
);
const config_path = path.join(__dirname, '..', 'src', 'configs');
const runner_dir: string = await utils.getInput('RUNNER_TOOL_CACHE', false);
await io.cp(config_path, runner_dir);
await io.cp(path.join(config_path, 'phpunit.json'), runner_dir);
await io.cp(path.join(config_path, 'php.json'), runner_dir);
}