Skip to content

Commit

Permalink
npm run format
Browse files Browse the repository at this point in the history
  • Loading branch information
shogo82148 committed Jul 28, 2023
1 parent 2e02d17 commit 17808e0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions __test__/installer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe("installer", () => {
const reviewdog = await installer.installReviewdog("v0.12.0", dir);
await exec.exec(reviewdog, ["--version"]);
},
5 * 60 * 1000
5 * 60 * 1000,
);

it(
Expand All @@ -34,7 +34,7 @@ describe("installer", () => {
const reviewdog = await installer.installReviewdog("latest", dir);
await exec.exec(reviewdog, ["--version"]);
},
5 * 60 * 1000
5 * 60 * 1000,
);

it(
Expand All @@ -44,7 +44,7 @@ describe("installer", () => {
const golangci = await installer.installGolangciLint("v1.41.1", dir);
await exec.exec(golangci, ["--version"]);
},
5 * 60 * 1000
5 * 60 * 1000,
);

it(
Expand All @@ -54,6 +54,6 @@ describe("installer", () => {
const golangci = await installer.installGolangciLint("latest", dir);
await exec.exec(golangci, ["--version"]);
},
5 * 60 * 1000
5 * 60 * 1000,
);
});
2 changes: 1 addition & 1 deletion src/installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ async function tagToVersion(tag: string, owner: string, repo: string): Promise<s
}
if (!response.result) {
throw new Error(
`unable to find '${tag}' - use 'latest' or see https://github.com/${owner}/${repo}/releases for details`
`unable to find '${tag}' - use 'latest' or see https://github.com/${owner}/${repo}/releases for details`,
);
}
let realTag = response.result.tag_name;
Expand Down
8 changes: 4 additions & 4 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ async function run(): Promise<void> {
"🐶 Installing reviewdog ... https://github.com/reviewdog/reviewdog",
async () => {
return await installer.installReviewdog(reviewdogVersion, tmpdir);
}
},
);

const golangci = await core.group(
"Installing golangci-lint ... https://github.com/golangci/golangci-lint",
async () => {
return await installer.installGolangciLint(golangciLintVersion, tmpdir);
}
},
);

let cacheState: cache.State | undefined = undefined;
Expand All @@ -63,7 +63,7 @@ async function run(): Promise<void> {
{
cwd,
ignoreReturnCode: true,
}
},
);

process.env["REVIEWDOG_GITHUB_API_TOKEN"] = core.getInput("github_token");
Expand All @@ -82,7 +82,7 @@ async function run(): Promise<void> {
cwd,
input: Buffer.from(output.stdout, "utf-8"),
ignoreReturnCode: true,
}
},
);
});

Expand Down

0 comments on commit 17808e0

Please sign in to comment.