Skip to content

Commit

Permalink
ci: support running test from custom node/core branches
Browse files Browse the repository at this point in the history
  • Loading branch information
porcellus committed Sep 26, 2024
1 parent 5a22c06 commit a11765c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ module.exports.addBrowserConsole = function (page) {

module.exports.coreTagEqualToOrAfter = function (targetTag) {
const currTag = process.env.SUPERTOKENS_CORE_TAG;
if (currTag === undefined || currTag === targetTag) return true;
if (currTag === undefined || currTag === targetTag || (!currTag.startsWith("dev-v") && targetTag.startsWith("v"))) {
return true;
}

const lparts = currTag.replace(/^(dev-)?v/, "").split(".");
while (lparts.length < 3) lparts.push("0");
Expand Down

0 comments on commit a11765c

Please sign in to comment.