From 7da2b4090a8b5eaec7c7c77e3c99a79ea8ad96e6 Mon Sep 17 00:00:00 2001 From: Matthew Thomas Date: Mon, 16 Dec 2024 18:16:31 +0000 Subject: [PATCH] fix: amend to use groupBy --- package-lock.json | 4 ++-- package.json | 2 +- src/ctrf/report-preparation.ts | 5 ++++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0d8e1c8e..49039a30 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "github-actions-ctrf", - "version": "0.0.50-rc.5", + "version": "0.0.50-rc.6", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "github-actions-ctrf", - "version": "0.0.50-rc.5", + "version": "0.0.50-rc.6", "license": "MIT", "dependencies": { "@actions/core": "^1.11.1", diff --git a/package.json b/package.json index c71df229..9d8aab8d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "github-actions-ctrf", - "version": "0.0.50-rc.5", + "version": "0.0.50-rc.6", "description": "View test results directly within your GitHub workflow summary and Pull Requests", "main": "index.js", "scripts": { diff --git a/src/ctrf/report-preparation.ts b/src/ctrf/report-preparation.ts index 8909a4a7..e44798e2 100644 --- a/src/ctrf/report-preparation.ts +++ b/src/ctrf/report-preparation.ts @@ -26,7 +26,10 @@ export async function prepareReport( report = enrichCurrentReportWithRunDetails(report, githubContext) if (shouldGroupTests(inputs)) { - report = groupTestsBySuiteOrFilePath(report, inputs.useSuiteName) + report = groupTestsBySuiteOrFilePath( + report, + inputs.groupBy === 'suite' ? true : false + ) } if (shouldPrefixTestNames(inputs)) {