Add PHPUnit problem matcher

This commit is contained in:
Dec Norton
2019-11-24 16:35:21 +00:00
parent 1db0b0651d
commit 03f36220f4
4 changed files with 69 additions and 0 deletions

10
src/matchers.ts Normal file
View File

@ -0,0 +1,10 @@
import * as path from 'path';
/**
* Add matches using the Actions Toolkit problem matchers syntax
* https://github.com/actions/toolkit/blob/master/docs/problem-matchers.md
*/
export function addMatchers(): void {
const matchersPath = path.join(__dirname, '..', '.github/matchers');
console.log(`##[add-matcher]${path.join(matchersPath, 'phpunit.json')}`);
}