mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-10-18 19:30:27 +08:00
Run tests against latest radicle 1.6.1 and httpd 0.24.0
This commit is contained in:
@@ -15,7 +15,7 @@ export async function create(
|
||||
title,
|
||||
"--description",
|
||||
description,
|
||||
...labels.map(label => ["--label", label]).flat(),
|
||||
...labels.map(label => ["--labels", label]).flat(),
|
||||
];
|
||||
const { stdout } = await peer.rad(issueOptions, options);
|
||||
const match = stdout.match(/Issue {3}([a-zA-Z0-9]*)/);
|
||||
|
||||
@@ -443,7 +443,7 @@ export async function createCobsFixture(
|
||||
createOptions(repoFolder, 5),
|
||||
);
|
||||
await peer.rad(
|
||||
["patch", "review", patchOne, "-m", "LGTM", "--accept"],
|
||||
["patch", "review", patchOne, "--accept"],
|
||||
createOptions(repoFolder, 6),
|
||||
);
|
||||
await patch.merge(
|
||||
@@ -462,14 +462,7 @@ export async function createCobsFixture(
|
||||
{ cwd: repoFolder },
|
||||
);
|
||||
await peer.rad(
|
||||
[
|
||||
"patch",
|
||||
"review",
|
||||
patchTwo,
|
||||
"-m",
|
||||
"Not the README we are looking for",
|
||||
"--reject",
|
||||
],
|
||||
["patch", "review", patchTwo, "--reject"],
|
||||
createOptions(repoFolder, 1),
|
||||
);
|
||||
|
||||
@@ -494,7 +487,7 @@ export async function createCobsFixture(
|
||||
createOptions(repoFolder, 1),
|
||||
);
|
||||
await eve.rad(
|
||||
["patch", "review", patchThree, "-m", "This looks better"],
|
||||
["patch", "review", patchThree, "--accept"],
|
||||
createOptions(repoFolder, 2),
|
||||
);
|
||||
await Fs.appendFile(
|
||||
@@ -516,14 +509,7 @@ export async function createCobsFixture(
|
||||
createOptions(repoFolder, 3),
|
||||
);
|
||||
await peer.rad(
|
||||
[
|
||||
"patch",
|
||||
"review",
|
||||
patchThree,
|
||||
"-m",
|
||||
"No this doesn't look better",
|
||||
"--reject",
|
||||
],
|
||||
["patch", "review", patchThree, "--reject"],
|
||||
createOptions(repoFolder, 2),
|
||||
);
|
||||
|
||||
@@ -536,13 +522,7 @@ export async function createCobsFixture(
|
||||
{ cwd: repoFolder },
|
||||
);
|
||||
await peer.rad(
|
||||
[
|
||||
"patch",
|
||||
"review",
|
||||
patchFour,
|
||||
"-m",
|
||||
"No review due to patch being archived.",
|
||||
],
|
||||
["patch", "review", patchFour, "--accept"],
|
||||
createOptions(repoFolder, 1),
|
||||
);
|
||||
await peer.rad(["patch", "archive", patchFour], createOptions(repoFolder, 2));
|
||||
|
||||
@@ -22,8 +22,13 @@ const heartwoodBinaryPath = Path.join(
|
||||
"bin",
|
||||
"heartwood",
|
||||
heartwoodRelease,
|
||||
);
|
||||
const httpdBinaryPath = Path.join(tmpDir, "bin", "httpd", radicleHttpdRelease);
|
||||
).trim();
|
||||
const httpdBinaryPath = Path.join(
|
||||
tmpDir,
|
||||
"bin",
|
||||
"httpd",
|
||||
radicleHttpdRelease,
|
||||
).trim();
|
||||
|
||||
process.env.PATH = [
|
||||
heartwoodBinaryPath,
|
||||
|
||||
@@ -1 +1 @@
|
||||
1.4.0
|
||||
1.6.1
|
||||
|
||||
@@ -1 +1 @@
|
||||
0.20.0
|
||||
0.24.0
|
||||
|
||||
@@ -25,15 +25,13 @@ export const tmpDir = Path.resolve(supportDir, "..", "./tmp");
|
||||
export const fixturesDir = Path.resolve(supportDir, "..", "./fixtures");
|
||||
const workspacePaths = [Path.join(tmpDir, "peers"), Path.join(tmpDir, "repos")];
|
||||
|
||||
export const heartwoodRelease = await Fs.readFile(
|
||||
`${supportDir}/heartwood-release`,
|
||||
"utf8",
|
||||
);
|
||||
export const heartwoodRelease = (
|
||||
await Fs.readFile(`${supportDir}/heartwood-release`, "utf8")
|
||||
).trim();
|
||||
|
||||
export const radicleHttpdRelease = await Fs.readFile(
|
||||
`${supportDir}/radicle-httpd-release`,
|
||||
"utf8",
|
||||
);
|
||||
export const radicleHttpdRelease = (
|
||||
await Fs.readFile(`${supportDir}/radicle-httpd-release`, "utf8")
|
||||
).trim();
|
||||
|
||||
// Assert that binaries are installed and are the correct version.
|
||||
export async function assertBinariesInstalled(
|
||||
|
||||
Reference in New Issue
Block a user