diff --git a/.github/workflows/scripts/test-tag-parser.js b/.github/workflows/scripts/test-tag-parser.js index 87298c2a3e..55e1b528a1 100644 --- a/.github/workflows/scripts/test-tag-parser.js +++ b/.github/workflows/scripts/test-tag-parser.js @@ -9,9 +9,13 @@ function parseTags({core, context}) { // "/test" matcher. const allTags = require(process.env.GITHUB_WORKSPACE + "/app/client/cypress/tags.js").Tag; - const config = body.match(/^\/test\s+(.*)$/m)?.[1] ?? ""; + const config = body.match(/^\**\/test\s+(.*)\**$/m)?.[1] ?? ""; const concreteTags = []; + if (config.toLowerCase() === "all") { + return "@tag.All" + } + for (const [rawTag] of config.matchAll(/\w+/g)) { console.log("Given: '" + rawTag + "'");