This commit is contained in:
A. J. Kaptijn 2024-01-16 12:58:19 +01:00
parent 5473a04c5a
commit 21274c9ad7
14 changed files with 110 additions and 110 deletions

View file

@ -1,7 +1,7 @@
import * as fs from 'fs'
import glob from 'fast-glob'
import {FileContent, InputProvider, ReportInput} from './input-provider.js'
import {listFiles} from '../utils/git.js'
import {FileContent, InputProvider, ReportInput} from './input-provider'
import {listFiles} from '../utils/git'
import Zip from 'adm-zip'
import path from 'path'

View file

@ -1,18 +1,18 @@
import * as core from '@actions/core'
import * as github from '@actions/github'
import {GitHub} from '@actions/github/lib/utils.js'
import {GitHub} from '@actions/github/lib/utils'
import {LocalFileProvider} from './input-providers/local-file-provider.js'
import {FileContent} from './input-providers/input-provider.js'
import {ParseOptions, TestParser} from './test-parser.js'
import {TestRunResult} from './test-results.js'
import {getAnnotations} from './report/get-annotations.js'
import {getReport} from './report/get-report.js'
import {LocalFileProvider} from './input-providers/local-file-provider'
import {FileContent} from './input-providers/input-provider'
import {ParseOptions, TestParser} from './test-parser'
import {TestRunResult} from './test-results'
import {getAnnotations} from './report/get-annotations'
import {getReport} from './report/get-report'
import {DotnetTrxParser} from './parsers/dotnet-trx/dotnet-trx-parser.js'
import {DotnetTrxParser} from './parsers/dotnet-trx/dotnet-trx-parser'
import {normalizeDirPath, normalizeFilePath} from './utils/path-utils.js'
import {getCheckRunContext} from './utils/github-utils.js'
import {normalizeDirPath, normalizeFilePath} from './utils/path-utils'
import {getCheckRunContext} from './utils/github-utils'
import {IncomingWebhook} from '@slack/webhook'
import fs from 'fs'
import bent from 'bent'

View file

@ -1,6 +1,6 @@
import {ParseOptions, TestParser} from '../../test-parser.js'
import {ParseOptions, TestParser} from '../../test-parser'
import {getBasePath, normalizeFilePath} from '../../utils/path-utils.js'
import {getBasePath, normalizeFilePath} from '../../utils/path-utils'
import {
ReportEvent,
@ -17,7 +17,7 @@ import {
isDoneEvent,
isMessageEvent,
MessageEvent
} from './dart-json-types.js'
} from './dart-json-types'
import {
TestExecutionResult,
@ -26,7 +26,7 @@ import {
TestGroupResult,
TestCaseResult,
TestCaseError
} from '../../test-results.js'
} from '../../test-results'
class TestRun {
constructor(

View file

@ -1,10 +1,10 @@
import {parseStringPromise} from 'xml2js'
import {ErrorInfo, Outcome, TrxReport, UnitTest, UnitTestResult} from './dotnet-trx-types.js'
import {ParseOptions, TestParser} from '../../test-parser.js'
import {ErrorInfo, Outcome, TrxReport, UnitTest, UnitTestResult} from './dotnet-trx-types'
import {ParseOptions, TestParser} from '../../test-parser'
import {getBasePath, normalizeFilePath} from '../../utils/path-utils.js'
import {parseIsoDate, parseNetDuration} from '../../utils/parse-utils.js'
import {getBasePath, normalizeFilePath} from '../../utils/path-utils'
import {parseIsoDate, parseNetDuration} from '../../utils/parse-utils'
import {
TestExecutionResult,
@ -13,7 +13,7 @@ import {
TestGroupResult,
TestCaseResult,
TestCaseError
} from '../../test-results.js'
} from '../../test-results'
class TestClass {
constructor(readonly name: string) {}

View file

@ -1,10 +1,10 @@
import * as path from 'path'
import {ParseOptions, TestParser} from '../../test-parser.js'
import {ParseOptions, TestParser} from '../../test-parser'
import {parseStringPromise} from 'xml2js'
import {parseStackTraceElement} from './java-stack-trace-element-parser.js'
import {JunitReport, SingleSuiteReport, TestCase, TestSuite} from './java-junit-types.js'
import {normalizeFilePath} from '../../utils/path-utils.js'
import {parseStackTraceElement} from './java-stack-trace-element-parser'
import {JunitReport, SingleSuiteReport, TestCase, TestSuite} from './java-junit-types'
import {normalizeFilePath} from '../../utils/path-utils'
import {
TestExecutionResult,
@ -13,7 +13,7 @@ import {
TestGroupResult,
TestCaseResult,
TestCaseError
} from '../../test-results.js'
} from '../../test-results'
export class JavaJunitParser implements TestParser {
readonly trackedFiles: {[fileName: string]: string[]}

View file

@ -1,9 +1,9 @@
import {ParseOptions, TestParser} from '../../test-parser.js'
import {ParseOptions, TestParser} from '../../test-parser'
import {parseStringPromise} from 'xml2js'
import {JunitReport, TestCase, TestSuite} from './jest-junit-types.js'
import {getExceptionSource} from '../../utils/node-utils.js'
import {getBasePath, normalizeFilePath} from '../../utils/path-utils.js'
import {JunitReport, TestCase, TestSuite} from './jest-junit-types'
import {getExceptionSource} from '../../utils/node-utils'
import {getBasePath, normalizeFilePath} from '../../utils/path-utils'
import {
TestExecutionResult,
@ -12,7 +12,7 @@ import {
TestGroupResult,
TestCaseResult,
TestCaseError
} from '../../test-results.js'
} from '../../test-results'
export class JestJunitParser implements TestParser {
assumedWorkDir: string | undefined

View file

@ -1,4 +1,4 @@
import {ParseOptions, TestParser} from '../../test-parser.js'
import {ParseOptions, TestParser} from '../../test-parser'
import {
TestCaseError,
TestCaseResult,
@ -6,10 +6,10 @@ import {
TestGroupResult,
TestRunResult,
TestSuiteResult
} from '../../test-results.js'
import {getExceptionSource} from '../../utils/node-utils.js'
import {getBasePath, normalizeFilePath} from '../../utils/path-utils.js'
import {MochaJson, MochaJsonTest} from './mocha-json-types.js'
} from '../../test-results'
import {getExceptionSource} from '../../utils/node-utils'
import {getBasePath, normalizeFilePath} from '../../utils/path-utils'
import {MochaJson, MochaJsonTest} from './mocha-json-types'
export class MochaJsonParser implements TestParser {
assumedWorkDir: string | undefined

View file

@ -1,5 +1,5 @@
import {ParseOptions} from '../../test-parser.js'
import {JavaJunitParser} from '../java-junit/java-junit-parser.js'
import {ParseOptions} from '../../test-parser'
import {JavaJunitParser} from '../java-junit/java-junit-parser'
export class SwiftXunitParser extends JavaJunitParser {
constructor(readonly options: ParseOptions) {

View file

@ -1,6 +1,6 @@
import {ellipsis, fixEol} from '../utils/markdown-utils.js'
import {TestRunResult} from '../test-results.js'
import {getFirstNonEmptyLine} from '../utils/parse-utils.js'
import {ellipsis, fixEol} from '../utils/markdown-utils'
import {TestRunResult} from '../test-results'
import {getFirstNonEmptyLine} from '../utils/parse-utils'
type Annotation = {
path: string

View file

@ -1,9 +1,9 @@
import * as core from '@actions/core'
import {DEFAULT_LOCALE} from '../utils/node-utils.js'
import {TestExecutionResult, TestRunResult, TestSuiteResult} from '../test-results.js'
import {Align, formatTime, Icon, link, table} from '../utils/markdown-utils.js'
import {getFirstNonEmptyLine} from '../utils/parse-utils.js'
import {slug} from '../utils/slugger.js'
import {DEFAULT_LOCALE} from '../utils/node-utils'
import {TestExecutionResult, TestRunResult, TestSuiteResult} from '../test-results'
import {Align, formatTime, Icon, link, table} from '../utils/markdown-utils'
import {getFirstNonEmptyLine} from '../utils/parse-utils'
import {slug} from '../utils/slugger'
const MAX_REPORT_LENGTH = 65535

View file

@ -1,4 +1,4 @@
import {TestRunResult} from './test-results.js'
import {TestRunResult} from './test-results'
export interface ParseOptions {
parseErrors: boolean

View file

@ -1,7 +1,7 @@
import {createWriteStream} from 'fs'
import * as core from '@actions/core'
import * as github from '@actions/github'
import {GitHub} from '@actions/github/lib/utils.js'
import {GitHub} from '@actions/github/lib/utils'
import * as stream from 'stream'
import {promisify} from 'util'
import got from 'got'

View file

@ -1,4 +1,4 @@
import {normalizeFilePath} from './path-utils.js'
import {normalizeFilePath} from './path-utils'
export const DEFAULT_LOCALE = 'en-US'