Skip to content

Commit

Permalink
Add dart-json & flutter-machine support to main
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Dorner committed Jan 6, 2021
1 parent cc11ace commit ad37e4d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down Expand Up @@ -63,10 +64,12 @@ async function main(): Promise<void> {

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:
Expand Down

0 comments on commit ad37e4d

Please sign in to comment.