setup-php/src/matchers.ts

19 lines
431 B
TypeScript
Raw Normal View History

2019-11-24 16:35:21 +00:00
import * as path from 'path';
2019-12-19 02:38:12 +05:30
import * as utils from './utils';
import * as io from '@actions/io';
2019-11-24 16:35:21 +00:00
/**
2019-12-19 02:38:12 +05:30
* Cache json files for problem matchers
2019-11-24 16:35:21 +00:00
*/
2019-12-19 02:38:12 +05:30
export async function addMatchers(): Promise<void> {
const config_path = path.join(
__dirname,
'..',
'src',
'configs',
'phpunit.json'
);
const runner_dir: string = await utils.getInput('RUNNER_TOOL_CACHE', false);
await io.cp(config_path, runner_dir);
2019-11-24 16:35:21 +00:00
}