From ad37e4d3c1eb8efe565c71ac3d3f06a8d3e39919 Mon Sep 17 00:00:00 2001 From: Michal Dorner Date: Wed, 6 Jan 2021 22:59:30 +0100 Subject: [PATCH] Add dart-json & flutter-machine support to main --- src/main.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 0f61ab5..8174a8b 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,6 +1,7 @@ import * as core from '@actions/core' import * as github from '@actions/github' import {parseJestJunit} from './parsers/jest-junit/jest-junit-parser' +import {parseDartJson} from './parsers/dart-json/dart-json-parser' import {ParseOptions, ParseTestResult} from './parsers/test-parser' import {getFileContent, normalizeDirPath} from './utils/file-utils' import {listFiles} from './utils/git' @@ -63,10 +64,12 @@ async function main(): Promise { function getParser(reporter: string): ParseTestResult { switch (reporter) { + case 'dart-json': + return parseDartJson case 'dotnet-trx': throw new Error('Not implemented yet!') case 'flutter-machine': - throw new Error('Not implemented yet!') + return parseDartJson case 'jest-junit': return parseJestJunit default: