Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: re-enable tests and use node v22.7.0 #235

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ jobs:
- run: npm ci
- run: npm run format:check
- run: npm run lint
# FIXME: Re-enable this once tests can reliably run in GitHub Actions
# - run: npm run test
- run: npm run test
- run: npm run build

- name: Check that dist/ is correctly generated
Expand Down
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20.6.0
22.7.0
13 changes: 7 additions & 6 deletions dist/build-crates-debian-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -127477,8 +127477,8 @@ function installBinaryFromGit(name, gitUrl, gitBranch) {
* The executable is cached using GitHub's `@actions/cache`.
* @param name Name of the cargo binary on crates.io
*/
async function installBinaryCached(name) {
if (process.env["GITHUB_ACTIONS"] != undefined) {
async function installBinaryCached(name, useCache) {
if (process.env["GITHUB_ACTIONS"] != undefined && useCache == true) {
const paths = [(0,path__WEBPACK_IMPORTED_MODULE_1__.join)(os__WEBPACK_IMPORTED_MODULE_0__.homedir(), ".cargo", "bin")];
const version = _config__WEBPACK_IMPORTED_MODULE_6__/* .config.lock.cratesio */ .v.lock.cratesio[name];
const key = `${os__WEBPACK_IMPORTED_MODULE_0__.platform()}-${os__WEBPACK_IMPORTED_MODULE_0__.release()}-${os__WEBPACK_IMPORTED_MODULE_0__.arch()}-${name}-${version}`;
Expand Down Expand Up @@ -127616,6 +127616,7 @@ function exec(program, args, options) {
options.cwd = options.cwd != null ? options.cwd : ".";
options.check = options.check != null ? options.check : true;
options.input = options.input != null ? options.input : "";
options.quiet = options.quiet != null ? options.quiet : false;
_actions_core__WEBPACK_IMPORTED_MODULE_1__.startGroup(`\u001b[1m\u001b[35m${program}(${args.join(", ")})\u001b[0m`);
const returns = (0,child_process__WEBPACK_IMPORTED_MODULE_0__.spawnSync)(program, args, {
// NOTE: Environment variables defined in `options.env` take precedence over
Expand All @@ -127632,11 +127633,11 @@ function exec(program, args, options) {
input: options.input,
maxBuffer: MAX_BUFFER,
});
if (returns.stdout != "") {
if (returns.stdout != "" && !options.quiet) {
_actions_core__WEBPACK_IMPORTED_MODULE_1__.info(`\u001b[1mstdout:\u001b[0m`);
_actions_core__WEBPACK_IMPORTED_MODULE_1__.info(returns.stdout);
}
if (returns.stderr != "") {
if (returns.stderr != "" && !options.quiet) {
_actions_core__WEBPACK_IMPORTED_MODULE_1__.info(`\u001b[1mstderr:\u001b[0m`);
_actions_core__WEBPACK_IMPORTED_MODULE_1__.info(returns.stderr);
}
Expand Down Expand Up @@ -127696,12 +127697,12 @@ _cargo__WEBPACK_IMPORTED_MODULE_2__ = (__webpack_async_dependencies__.then ? (aw

class TOML {
static async init() {
await _cargo__WEBPACK_IMPORTED_MODULE_2__/* .installBinaryCached */ .Mj("toml-cli2");
await _cargo__WEBPACK_IMPORTED_MODULE_2__/* .installBinaryCached */ .Mj("toml-cli2", false);
return new TOML();
}
get(path, key) {
const query = key == undefined ? "." : key.join(".");
return JSON.parse((0,_command__WEBPACK_IMPORTED_MODULE_1__/* .exec */ .G)("toml", ["get", path, query]));
return JSON.parse((0,_command__WEBPACK_IMPORTED_MODULE_1__/* .exec */ .G)("toml", ["get", path, query], { quiet: true }));
}
async set(path, key, value) {
const query = key.join(".");
Expand Down
13 changes: 7 additions & 6 deletions dist/build-crates-standalone-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -127461,8 +127461,8 @@ function installBinaryFromGit(name, gitUrl, gitBranch) {
* The executable is cached using GitHub's `@actions/cache`.
* @param name Name of the cargo binary on crates.io
*/
async function installBinaryCached(name) {
if (process.env["GITHUB_ACTIONS"] != undefined) {
async function installBinaryCached(name, useCache) {
if (process.env["GITHUB_ACTIONS"] != undefined && useCache == true) {
const paths = [(0,path__WEBPACK_IMPORTED_MODULE_1__.join)(os__WEBPACK_IMPORTED_MODULE_0__.homedir(), ".cargo", "bin")];
const version = _config__WEBPACK_IMPORTED_MODULE_6__/* .config.lock.cratesio */ .v.lock.cratesio[name];
const key = `${os__WEBPACK_IMPORTED_MODULE_0__.platform()}-${os__WEBPACK_IMPORTED_MODULE_0__.release()}-${os__WEBPACK_IMPORTED_MODULE_0__.arch()}-${name}-${version}`;
Expand Down Expand Up @@ -127600,6 +127600,7 @@ function exec(program, args, options) {
options.cwd = options.cwd != null ? options.cwd : ".";
options.check = options.check != null ? options.check : true;
options.input = options.input != null ? options.input : "";
options.quiet = options.quiet != null ? options.quiet : false;
_actions_core__WEBPACK_IMPORTED_MODULE_1__.startGroup(`\u001b[1m\u001b[35m${program}(${args.join(", ")})\u001b[0m`);
const returns = (0,child_process__WEBPACK_IMPORTED_MODULE_0__.spawnSync)(program, args, {
// NOTE: Environment variables defined in `options.env` take precedence over
Expand All @@ -127616,11 +127617,11 @@ function exec(program, args, options) {
input: options.input,
maxBuffer: MAX_BUFFER,
});
if (returns.stdout != "") {
if (returns.stdout != "" && !options.quiet) {
_actions_core__WEBPACK_IMPORTED_MODULE_1__.info(`\u001b[1mstdout:\u001b[0m`);
_actions_core__WEBPACK_IMPORTED_MODULE_1__.info(returns.stdout);
}
if (returns.stderr != "") {
if (returns.stderr != "" && !options.quiet) {
_actions_core__WEBPACK_IMPORTED_MODULE_1__.info(`\u001b[1mstderr:\u001b[0m`);
_actions_core__WEBPACK_IMPORTED_MODULE_1__.info(returns.stderr);
}
Expand Down Expand Up @@ -127709,12 +127710,12 @@ _cargo__WEBPACK_IMPORTED_MODULE_2__ = (__webpack_async_dependencies__.then ? (aw

class TOML {
static async init() {
await _cargo__WEBPACK_IMPORTED_MODULE_2__/* .installBinaryCached */ .Mj("toml-cli2");
await _cargo__WEBPACK_IMPORTED_MODULE_2__/* .installBinaryCached */ .Mj("toml-cli2", false);
return new TOML();
}
get(path, key) {
const query = key == undefined ? "." : key.join(".");
return JSON.parse((0,_command__WEBPACK_IMPORTED_MODULE_1__/* .exec */ .G)("toml", ["get", path, query]));
return JSON.parse((0,_command__WEBPACK_IMPORTED_MODULE_1__/* .exec */ .G)("toml", ["get", path, query], { quiet: true }));
}
async set(path, key, value) {
const query = key.join(".");
Expand Down
13 changes: 7 additions & 6 deletions dist/bump-crates-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -81183,8 +81183,8 @@ function installBinaryFromGit(name, gitUrl, gitBranch) {
* The executable is cached using GitHub's `@actions/cache`.
* @param name Name of the cargo binary on crates.io
*/
async function installBinaryCached(name) {
if (process.env["GITHUB_ACTIONS"] != undefined) {
async function installBinaryCached(name, useCache) {
if (process.env["GITHUB_ACTIONS"] != undefined && useCache == true) {
const paths = [(0,path__WEBPACK_IMPORTED_MODULE_1__.join)(os__WEBPACK_IMPORTED_MODULE_0__.homedir(), ".cargo", "bin")];
const version = _config__WEBPACK_IMPORTED_MODULE_6__/* .config.lock.cratesio */ .v.lock.cratesio[name];
const key = `${os__WEBPACK_IMPORTED_MODULE_0__.platform()}-${os__WEBPACK_IMPORTED_MODULE_0__.release()}-${os__WEBPACK_IMPORTED_MODULE_0__.arch()}-${name}-${version}`;
Expand Down Expand Up @@ -81322,6 +81322,7 @@ function exec(program, args, options) {
options.cwd = options.cwd != null ? options.cwd : ".";
options.check = options.check != null ? options.check : true;
options.input = options.input != null ? options.input : "";
options.quiet = options.quiet != null ? options.quiet : false;
_actions_core__WEBPACK_IMPORTED_MODULE_1__.startGroup(`\u001b[1m\u001b[35m${program}(${args.join(", ")})\u001b[0m`);
const returns = (0,child_process__WEBPACK_IMPORTED_MODULE_0__.spawnSync)(program, args, {
// NOTE: Environment variables defined in `options.env` take precedence over
Expand All @@ -81338,11 +81339,11 @@ function exec(program, args, options) {
input: options.input,
maxBuffer: MAX_BUFFER,
});
if (returns.stdout != "") {
if (returns.stdout != "" && !options.quiet) {
_actions_core__WEBPACK_IMPORTED_MODULE_1__.info(`\u001b[1mstdout:\u001b[0m`);
_actions_core__WEBPACK_IMPORTED_MODULE_1__.info(returns.stdout);
}
if (returns.stderr != "") {
if (returns.stderr != "" && !options.quiet) {
_actions_core__WEBPACK_IMPORTED_MODULE_1__.info(`\u001b[1mstderr:\u001b[0m`);
_actions_core__WEBPACK_IMPORTED_MODULE_1__.info(returns.stderr);
}
Expand Down Expand Up @@ -81401,12 +81402,12 @@ _cargo__WEBPACK_IMPORTED_MODULE_2__ = (__webpack_async_dependencies__.then ? (aw

class TOML {
static async init() {
await _cargo__WEBPACK_IMPORTED_MODULE_2__/* .installBinaryCached */ .Mj("toml-cli2");
await _cargo__WEBPACK_IMPORTED_MODULE_2__/* .installBinaryCached */ .Mj("toml-cli2", false);
return new TOML();
}
get(path, key) {
const query = key == undefined ? "." : key.join(".");
return JSON.parse((0,_command__WEBPACK_IMPORTED_MODULE_1__/* .exec */ .G)("toml", ["get", path, query]));
return JSON.parse((0,_command__WEBPACK_IMPORTED_MODULE_1__/* .exec */ .G)("toml", ["get", path, query], { quiet: true }));
}
async set(path, key, value) {
const query = key.join(".");
Expand Down
5 changes: 3 additions & 2 deletions dist/create-release-branch-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -24785,6 +24785,7 @@ function exec(program, args, options) {
options.cwd = options.cwd != null ? options.cwd : ".";
options.check = options.check != null ? options.check : true;
options.input = options.input != null ? options.input : "";
options.quiet = options.quiet != null ? options.quiet : false;
core.startGroup(`\u001b[1m\u001b[35m${program}(${args.join(", ")})\u001b[0m`);
const returns = spawnSync(program, args, {
// NOTE: Environment variables defined in `options.env` take precedence over
Expand All @@ -24801,11 +24802,11 @@ function exec(program, args, options) {
input: options.input,
maxBuffer: MAX_BUFFER,
});
if (returns.stdout != "") {
if (returns.stdout != "" && !options.quiet) {
core.info(`\u001b[1mstdout:\u001b[0m`);
core.info(returns.stdout);
}
if (returns.stderr != "") {
if (returns.stderr != "" && !options.quiet) {
core.info(`\u001b[1mstderr:\u001b[0m`);
core.info(returns.stderr);
}
Expand Down
13 changes: 7 additions & 6 deletions dist/publish-crates-cargo-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -81072,8 +81072,8 @@ function installBinaryFromGit(name, gitUrl, gitBranch) {
* The executable is cached using GitHub's `@actions/cache`.
* @param name Name of the cargo binary on crates.io
*/
async function installBinaryCached(name) {
if (process.env["GITHUB_ACTIONS"] != undefined) {
async function installBinaryCached(name, useCache) {
if (process.env["GITHUB_ACTIONS"] != undefined && useCache == true) {
const paths = [(0,path__WEBPACK_IMPORTED_MODULE_1__.join)(os__WEBPACK_IMPORTED_MODULE_0__.homedir(), ".cargo", "bin")];
const version = _config__WEBPACK_IMPORTED_MODULE_6__/* .config.lock.cratesio */ .v.lock.cratesio[name];
const key = `${os__WEBPACK_IMPORTED_MODULE_0__.platform()}-${os__WEBPACK_IMPORTED_MODULE_0__.release()}-${os__WEBPACK_IMPORTED_MODULE_0__.arch()}-${name}-${version}`;
Expand Down Expand Up @@ -81211,6 +81211,7 @@ function exec(program, args, options) {
options.cwd = options.cwd != null ? options.cwd : ".";
options.check = options.check != null ? options.check : true;
options.input = options.input != null ? options.input : "";
options.quiet = options.quiet != null ? options.quiet : false;
_actions_core__WEBPACK_IMPORTED_MODULE_1__.startGroup(`\u001b[1m\u001b[35m${program}(${args.join(", ")})\u001b[0m`);
const returns = (0,child_process__WEBPACK_IMPORTED_MODULE_0__.spawnSync)(program, args, {
// NOTE: Environment variables defined in `options.env` take precedence over
Expand All @@ -81227,11 +81228,11 @@ function exec(program, args, options) {
input: options.input,
maxBuffer: MAX_BUFFER,
});
if (returns.stdout != "") {
if (returns.stdout != "" && !options.quiet) {
_actions_core__WEBPACK_IMPORTED_MODULE_1__.info(`\u001b[1mstdout:\u001b[0m`);
_actions_core__WEBPACK_IMPORTED_MODULE_1__.info(returns.stdout);
}
if (returns.stderr != "") {
if (returns.stderr != "" && !options.quiet) {
_actions_core__WEBPACK_IMPORTED_MODULE_1__.info(`\u001b[1mstderr:\u001b[0m`);
_actions_core__WEBPACK_IMPORTED_MODULE_1__.info(returns.stderr);
}
Expand Down Expand Up @@ -81511,12 +81512,12 @@ _cargo__WEBPACK_IMPORTED_MODULE_2__ = (__webpack_async_dependencies__.then ? (aw

class TOML {
static async init() {
await _cargo__WEBPACK_IMPORTED_MODULE_2__/* .installBinaryCached */ .Mj("toml-cli2");
await _cargo__WEBPACK_IMPORTED_MODULE_2__/* .installBinaryCached */ .Mj("toml-cli2", false);
return new TOML();
}
get(path, key) {
const query = key == undefined ? "." : key.join(".");
return JSON.parse((0,_command__WEBPACK_IMPORTED_MODULE_1__/* .exec */ .G)("toml", ["get", path, query]));
return JSON.parse((0,_command__WEBPACK_IMPORTED_MODULE_1__/* .exec */ .G)("toml", ["get", path, query], { quiet: true }));
}
async set(path, key, value) {
const query = key.join(".");
Expand Down
13 changes: 7 additions & 6 deletions dist/publish-crates-debian-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -127456,8 +127456,8 @@ function installBinaryFromGit(name, gitUrl, gitBranch) {
* The executable is cached using GitHub's `@actions/cache`.
* @param name Name of the cargo binary on crates.io
*/
async function installBinaryCached(name) {
if (process.env["GITHUB_ACTIONS"] != undefined) {
async function installBinaryCached(name, useCache) {
if (process.env["GITHUB_ACTIONS"] != undefined && useCache == true) {
const paths = [(0,path__WEBPACK_IMPORTED_MODULE_1__.join)(os__WEBPACK_IMPORTED_MODULE_0__.homedir(), ".cargo", "bin")];
const version = _config__WEBPACK_IMPORTED_MODULE_6__/* .config.lock.cratesio */ .v.lock.cratesio[name];
const key = `${os__WEBPACK_IMPORTED_MODULE_0__.platform()}-${os__WEBPACK_IMPORTED_MODULE_0__.release()}-${os__WEBPACK_IMPORTED_MODULE_0__.arch()}-${name}-${version}`;
Expand Down Expand Up @@ -127595,6 +127595,7 @@ function exec(program, args, options) {
options.cwd = options.cwd != null ? options.cwd : ".";
options.check = options.check != null ? options.check : true;
options.input = options.input != null ? options.input : "";
options.quiet = options.quiet != null ? options.quiet : false;
_actions_core__WEBPACK_IMPORTED_MODULE_1__.startGroup(`\u001b[1m\u001b[35m${program}(${args.join(", ")})\u001b[0m`);
const returns = (0,child_process__WEBPACK_IMPORTED_MODULE_0__.spawnSync)(program, args, {
// NOTE: Environment variables defined in `options.env` take precedence over
Expand All @@ -127611,11 +127612,11 @@ function exec(program, args, options) {
input: options.input,
maxBuffer: MAX_BUFFER,
});
if (returns.stdout != "") {
if (returns.stdout != "" && !options.quiet) {
_actions_core__WEBPACK_IMPORTED_MODULE_1__.info(`\u001b[1mstdout:\u001b[0m`);
_actions_core__WEBPACK_IMPORTED_MODULE_1__.info(returns.stdout);
}
if (returns.stderr != "") {
if (returns.stderr != "" && !options.quiet) {
_actions_core__WEBPACK_IMPORTED_MODULE_1__.info(`\u001b[1mstderr:\u001b[0m`);
_actions_core__WEBPACK_IMPORTED_MODULE_1__.info(returns.stderr);
}
Expand Down Expand Up @@ -127849,12 +127850,12 @@ _cargo__WEBPACK_IMPORTED_MODULE_2__ = (__webpack_async_dependencies__.then ? (aw

class TOML {
static async init() {
await _cargo__WEBPACK_IMPORTED_MODULE_2__/* .installBinaryCached */ .Mj("toml-cli2");
await _cargo__WEBPACK_IMPORTED_MODULE_2__/* .installBinaryCached */ .Mj("toml-cli2", false);
return new TOML();
}
get(path, key) {
const query = key == undefined ? "." : key.join(".");
return JSON.parse((0,_command__WEBPACK_IMPORTED_MODULE_1__/* .exec */ .G)("toml", ["get", path, query]));
return JSON.parse((0,_command__WEBPACK_IMPORTED_MODULE_1__/* .exec */ .G)("toml", ["get", path, query], { quiet: true }));
}
async set(path, key, value) {
const query = key.join(".");
Expand Down
13 changes: 7 additions & 6 deletions dist/publish-crates-eclipse-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -127537,8 +127537,8 @@ function installBinaryFromGit(name, gitUrl, gitBranch) {
* The executable is cached using GitHub's `@actions/cache`.
* @param name Name of the cargo binary on crates.io
*/
async function installBinaryCached(name) {
if (process.env["GITHUB_ACTIONS"] != undefined) {
async function installBinaryCached(name, useCache) {
if (process.env["GITHUB_ACTIONS"] != undefined && useCache == true) {
const paths = [(0,path__WEBPACK_IMPORTED_MODULE_1__.join)(os__WEBPACK_IMPORTED_MODULE_0__.homedir(), ".cargo", "bin")];
const version = _config__WEBPACK_IMPORTED_MODULE_6__/* .config.lock.cratesio */ .v.lock.cratesio[name];
const key = `${os__WEBPACK_IMPORTED_MODULE_0__.platform()}-${os__WEBPACK_IMPORTED_MODULE_0__.release()}-${os__WEBPACK_IMPORTED_MODULE_0__.arch()}-${name}-${version}`;
Expand Down Expand Up @@ -127697,6 +127697,7 @@ function exec(program, args, options) {
options.cwd = options.cwd != null ? options.cwd : ".";
options.check = options.check != null ? options.check : true;
options.input = options.input != null ? options.input : "";
options.quiet = options.quiet != null ? options.quiet : false;
_actions_core__WEBPACK_IMPORTED_MODULE_1__.startGroup(`\u001b[1m\u001b[35m${program}(${args.join(", ")})\u001b[0m`);
const returns = (0,child_process__WEBPACK_IMPORTED_MODULE_0__.spawnSync)(program, args, {
// NOTE: Environment variables defined in `options.env` take precedence over
Expand All @@ -127713,11 +127714,11 @@ function exec(program, args, options) {
input: options.input,
maxBuffer: MAX_BUFFER,
});
if (returns.stdout != "") {
if (returns.stdout != "" && !options.quiet) {
_actions_core__WEBPACK_IMPORTED_MODULE_1__.info(`\u001b[1mstdout:\u001b[0m`);
_actions_core__WEBPACK_IMPORTED_MODULE_1__.info(returns.stdout);
}
if (returns.stderr != "") {
if (returns.stderr != "" && !options.quiet) {
_actions_core__WEBPACK_IMPORTED_MODULE_1__.info(`\u001b[1mstderr:\u001b[0m`);
_actions_core__WEBPACK_IMPORTED_MODULE_1__.info(returns.stderr);
}
Expand Down Expand Up @@ -127955,12 +127956,12 @@ _cargo__WEBPACK_IMPORTED_MODULE_2__ = (__webpack_async_dependencies__.then ? (aw

class TOML {
static async init() {
await _cargo__WEBPACK_IMPORTED_MODULE_2__/* .installBinaryCached */ .Mj("toml-cli2");
await _cargo__WEBPACK_IMPORTED_MODULE_2__/* .installBinaryCached */ .Mj("toml-cli2", false);
return new TOML();
}
get(path, key) {
const query = key == undefined ? "." : key.join(".");
return JSON.parse((0,_command__WEBPACK_IMPORTED_MODULE_1__/* .exec */ .G)("toml", ["get", path, query]));
return JSON.parse((0,_command__WEBPACK_IMPORTED_MODULE_1__/* .exec */ .G)("toml", ["get", path, query], { quiet: true }));
}
async set(path, key, value) {
const query = key.join(".");
Expand Down
Loading
Loading