mirror of
https://github.com/shivammathur/setup-php.git
synced 2025-09-05 04:14:08 +07:00
Fix matchers and add tests
This commit is contained in:
@ -4,7 +4,7 @@ import * as config from './config';
|
||||
import * as coverage from './coverage';
|
||||
import * as extensions from './extensions';
|
||||
import * as utils from './utils';
|
||||
import {addMatchers} from './matchers';
|
||||
import * as matchers from './matchers';
|
||||
|
||||
/**
|
||||
* Build the script
|
||||
@ -26,6 +26,7 @@ export async function build(
|
||||
(await utils.getInput('ini-values', false)) ||
|
||||
(await utils.getInput('ini-values-csv', false));
|
||||
const coverage_driver: string = await utils.getInput('coverage', false);
|
||||
const setup_matchers: string = await utils.getInput('matchers', false);
|
||||
|
||||
let script: string = await utils.readScript(filename, version, os_version);
|
||||
if (extension_csv) {
|
||||
@ -69,8 +70,7 @@ export async function run(): Promise<void> {
|
||||
);
|
||||
break;
|
||||
}
|
||||
|
||||
addMatchers();
|
||||
await matchers.addMatchers();
|
||||
} catch (error) {
|
||||
core.setFailed(error.message);
|
||||
}
|
||||
|
Reference in New Issue
Block a user