mirror of
				https://github.com/shivammathur/setup-php.git
				synced 2025-10-30 23:07:56 +07:00 
			
		
		
		
	Add PHPUnit problem matcher
This commit is contained in:
		| @ -4,6 +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'; | ||||
|  | ||||
| /** | ||||
|  * Build the script | ||||
| @ -63,6 +64,8 @@ export async function run(): Promise<void> { | ||||
|         ); | ||||
|         break; | ||||
|     } | ||||
|  | ||||
|     addMatchers(); | ||||
|   } catch (error) { | ||||
|     core.setFailed(error.message); | ||||
|   } | ||||
|  | ||||
							
								
								
									
										10
									
								
								src/matchers.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								src/matchers.ts
									
									
									
									
									
										Normal 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')}`); | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 Dec Norton
					Dec Norton