ci: Support for "all" tag in /test and allow bold (#33733)

**/test all**


![shot-2024-05-26-12-15-35](https://github.com/appsmithorg/appsmith/assets/120119/70df30de-bcdf-4861-9495-ed83288a8f83)


<!-- 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:
Shrikant Sharat Kandula 2024-05-27 09:49:27 +05:30 committed by GitHub
parent 1ceee16a75
commit 2f45dd3dd0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 + "'");