Loading .prettierrc.json +1 −1 Changes for .prettierrc.json: 1 added line, 1 removed line. Original line number Diff line number Diff line { "printWidth": 80, "tabWidth": 2, "tabWidth": 4, "useTabs": false, "semi": false, "singleQuote": true, Loading __tests__/main.test.ts +2 −2 Changes for __tests__/main.test.ts: 2 added lines, 2 removed lines. Original line number Diff line number Diff line describe('TODO - Add a test suite', () => { it('TODO - Add a test', async () => {}); }); it('TODO - Add a test', async () => {}) }) package.json +1 −1 Changes for package.json: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -9,7 +9,7 @@ "lint": "eslint src/**/*.ts", "build": "ncc build src/main.ts --out dist/main --minify && ncc build src/post.ts --out dist/post --minify", "test": "jest", "all": "npm run build && npm test" "all": "npm run format && npm run build && npm test" }, "repository": { "type": "git", Loading src/execution.ts +15 −17 Changes for src/execution.ts: 15 added lines, 17 removed lines. Original line number Diff line number Diff line import * as exec from "@actions/exec"; import * as exec from '@actions/exec' export async function execute(executable: string, root: string, argv: string[]): Promise<BuildResult> { let publishing = false; let buildScanUrl: string | undefined; export async function execute( executable: string, root: string, argv: string[] ): Promise<BuildResult> { let publishing = false let buildScanUrl: string | undefined const status: number = await exec.exec(executable, argv, { cwd: root, ignoreReturnCode: true, listeners: { stdline: (line: string) => { if (line.startsWith("Publishing build scan...")) { publishing = true; if (line.startsWith('Publishing build scan...')) { publishing = true } if (publishing && line.length == 0) { publishing = false } if (publishing && line.startsWith("http")) { buildScanUrl = line.trim(); if (publishing && line.startsWith('http')) { buildScanUrl = line.trim() publishing = false } } } }); }) return new BuildResultImpl(status, buildScanUrl); return new BuildResultImpl(status, buildScanUrl) } export interface BuildResult { Loading @@ -34,9 +36,5 @@ export interface BuildResult { } class BuildResultImpl implements BuildResult { constructor( readonly status: number, readonly buildScanUrl?: string ) { } constructor(readonly status: number, readonly buildScanUrl?: string) {} } src/gradlew.ts +3 −5 Changes for src/gradlew.ts: 3 added lines, 5 removed lines. Original line number Diff line number Diff line const IS_WINDOWS = process.platform === "win32"; const IS_WINDOWS = process.platform === 'win32' export function wrapperFilename(): string { return IS_WINDOWS ? "gradlew.bat" : "gradlew"; return IS_WINDOWS ? 'gradlew.bat' : 'gradlew' } export function installScriptFilename(): string { return IS_WINDOWS ? "gradle.bat" : "gradle"; return IS_WINDOWS ? 'gradle.bat' : 'gradle' } Loading
.prettierrc.json +1 −1 Changes for .prettierrc.json: 1 added line, 1 removed line. Original line number Diff line number Diff line { "printWidth": 80, "tabWidth": 2, "tabWidth": 4, "useTabs": false, "semi": false, "singleQuote": true, Loading
__tests__/main.test.ts +2 −2 Changes for __tests__/main.test.ts: 2 added lines, 2 removed lines. Original line number Diff line number Diff line describe('TODO - Add a test suite', () => { it('TODO - Add a test', async () => {}); }); it('TODO - Add a test', async () => {}) })
package.json +1 −1 Changes for package.json: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -9,7 +9,7 @@ "lint": "eslint src/**/*.ts", "build": "ncc build src/main.ts --out dist/main --minify && ncc build src/post.ts --out dist/post --minify", "test": "jest", "all": "npm run build && npm test" "all": "npm run format && npm run build && npm test" }, "repository": { "type": "git", Loading
src/execution.ts +15 −17 Changes for src/execution.ts: 15 added lines, 17 removed lines. Original line number Diff line number Diff line import * as exec from "@actions/exec"; import * as exec from '@actions/exec' export async function execute(executable: string, root: string, argv: string[]): Promise<BuildResult> { let publishing = false; let buildScanUrl: string | undefined; export async function execute( executable: string, root: string, argv: string[] ): Promise<BuildResult> { let publishing = false let buildScanUrl: string | undefined const status: number = await exec.exec(executable, argv, { cwd: root, ignoreReturnCode: true, listeners: { stdline: (line: string) => { if (line.startsWith("Publishing build scan...")) { publishing = true; if (line.startsWith('Publishing build scan...')) { publishing = true } if (publishing && line.length == 0) { publishing = false } if (publishing && line.startsWith("http")) { buildScanUrl = line.trim(); if (publishing && line.startsWith('http')) { buildScanUrl = line.trim() publishing = false } } } }); }) return new BuildResultImpl(status, buildScanUrl); return new BuildResultImpl(status, buildScanUrl) } export interface BuildResult { Loading @@ -34,9 +36,5 @@ export interface BuildResult { } class BuildResultImpl implements BuildResult { constructor( readonly status: number, readonly buildScanUrl?: string ) { } constructor(readonly status: number, readonly buildScanUrl?: string) {} }
src/gradlew.ts +3 −5 Changes for src/gradlew.ts: 3 added lines, 5 removed lines. Original line number Diff line number Diff line const IS_WINDOWS = process.platform === "win32"; const IS_WINDOWS = process.platform === 'win32' export function wrapperFilename(): string { return IS_WINDOWS ? "gradlew.bat" : "gradlew"; return IS_WINDOWS ? 'gradlew.bat' : 'gradlew' } export function installScriptFilename(): string { return IS_WINDOWS ? "gradle.bat" : "gradle"; return IS_WINDOWS ? 'gradle.bat' : 'gradle' }