Skip to content

Commit

Permalink
bump up to v1.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
shogo82148 committed Feb 5, 2024
1 parent ce88ccf commit 785c9d6
Show file tree
Hide file tree
Showing 14 changed files with 40 additions and 16 deletions.
Binary file modified bin/goveralls_darwin_amd64
Binary file not shown.
Binary file added bin/goveralls_darwin_arm64
Binary file not shown.
Binary file modified bin/goveralls_linux_amd64
Binary file not shown.
Binary file added bin/goveralls_linux_arm64
Binary file not shown.
Binary file modified bin/goveralls_windows_amd64.exe
Binary file not shown.
Binary file added bin/goveralls_windows_arm64.exe
Binary file not shown.
32 changes: 28 additions & 4 deletions lib/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,32 @@ async function go_env(name) {
return out.trim();
}
function get_goveralls_path() {
const name = process.platform === "win32"
? "goveralls_windows_amd64.exe"
: `goveralls_${process.platform}_amd64`;
return path.join(__dirname, "..", "bin", name);
let os;
let suffix = "";
switch (process.platform) {
case "win32":
os = "windows";
suffix = ".exe";
break;
case "darwin":
os = "darwin";
break;
case "linux":
os = "linux";
break;
default:
throw new Error(`unsupported OS: ${process.platform}`);
}
let arch;
switch (process.arch) {
case "x64":
arch = "amd64";
break;
case "arm64":
arch = "arm64";
break;
default:
throw new Error(`unsupported architecture: ${process.arch}`);
}
return path.join(__dirname, "..", "bin", `goveralls_${os}_${arch}${suffix}`);
}
4 changes: 2 additions & 2 deletions node_modules/@actions/core/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions node_modules/@actions/core/lib/core.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion node_modules/@actions/core/lib/oidc-utils.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion node_modules/@actions/core/lib/oidc-utils.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions node_modules/@actions/core/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "actions-goveralls",
"version": "1.8.0",
"version": "1.9.0",
"private": true,
"description": "Coveralls GitHub Action with Go integration powered by mattn/goveralls",
"main": "lib/main.js",
Expand Down

0 comments on commit 785c9d6

Please sign in to comment.