ci: Support for "all" tag in /test and allow bold (#33733)
**/test all**  <!-- This is an auto-generated comment: Cypress test results --> > [!WARNING] > Workflow run: <https://github.com/appsmithorg/appsmith/actions/runs/9243140883> > Commit: abf3814fd6bfa308353d1042e5df2ef75e02fd0a > Cypress dashboard url: <a href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=9243140883&attempt=1" target="_blank">Click here!</a> > It seems like **no tests ran** 😔. We are not able to recognize it, please check workflow <a href="https://github.com/appsmithorg/appsmith/actions/runs/9243140883" target="_blank">here.</a> <!-- end of auto-generated comment: Cypress test results -->
This commit is contained in:
parent
1ceee16a75
commit
2f45dd3dd0
6
.github/workflows/scripts/test-tag-parser.js
vendored
6
.github/workflows/scripts/test-tag-parser.js
vendored
|
|
@ -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 + "'");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user