From a16cd5d218759dd7b50110db253270786d2e93c5 Mon Sep 17 00:00:00 2001 From: cfsimplicity Date: Mon, 10 Jun 2024 11:09:03 +0100 Subject: [PATCH] Trying to fix GHA test failures. --- .github/workflows/tests.yml | 5 ++++- box.json | 3 --- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c78348b..e0fd45e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -35,4 +35,7 @@ jobs: run: box server start cfengine=${{ matrix.cfengine }} port=8080 - name: Run TestBox Tests - run: box testbox run \ No newline at end of file + run: | + testResults="echo $(box testbox run reporter=mintext)"; + echo "$testResults"; + if grep -i "\[Failures: [1-9][0-9]\?[0-9]\?\]\|\[Errors: [1-9][0-9]\?[0-9]\?\]\|]*>\|]*>" <<< $testResults; then exit 1; fi \ No newline at end of file diff --git a/box.json b/box.json index 88df652..a4391e7 100644 --- a/box.json +++ b/box.json @@ -24,9 +24,6 @@ "devDependencies" : { "testbox" : ">=5.0.0" }, - "installPaths":{ - "testbox":"test/testbox/" - }, testbox:{ runner:[ { "default": "http://localhost:8080/test/index.cfm" }