From 2f45dd3dd0fb1bd937a1b29e3e8d58f9ec80bed8 Mon Sep 17 00:00:00 2001 From: Shrikant Sharat Kandula Date: Mon, 27 May 2024 09:49:27 +0530 Subject: [PATCH] ci: Support for "all" tag in /test and allow bold (#33733) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit **/test all** ![shot-2024-05-26-12-15-35](https://github.com/appsmithorg/appsmith/assets/120119/70df30de-bcdf-4861-9495-ed83288a8f83) > [!WARNING] > Workflow run: > Commit: abf3814fd6bfa308353d1042e5df2ef75e02fd0a > Cypress dashboard url: Click here! > It seems like **no tests ran** 😔. We are not able to recognize it, please check workflow here. --- .github/workflows/scripts/test-tag-parser.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 + "'");