From 446e4486e508c6c226690c43b88985bcde8c102f Mon Sep 17 00:00:00 2001 From: Bhavin Patel Date: Tue, 2 Jul 2024 13:07:43 -0700 Subject: [PATCH] updating test --- .github/workflows/unit-testing.yml | 8 +++++--- summary.yml => summary_2.yml | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) rename summary.yml => summary_2.yml (99%) diff --git a/.github/workflows/unit-testing.yml b/.github/workflows/unit-testing.yml index dff75f313c..784829f016 100644 --- a/.github/workflows/unit-testing.yml +++ b/.github/workflows/unit-testing.yml @@ -45,7 +45,8 @@ jobs: - name: Run ContentCTL test for changes against develop run: | pwd - cat security_content/summary.yml + ls + cat summary_2.yml # git status # git pull # source .venv/bin/activate @@ -66,10 +67,11 @@ jobs: - name: Check Test Summary run: | - total_fail=$(cat security_content/summary.yml | yq e '.summary.total_fail' -) + git status + total_fail=$(cat summary_2.yml | yq e '.summary.total_fail' -) if [ "$total_fail" != "0" ]; then echo "CI Failure: There are failed tests." - cat security_content/summary.yml | yq e '.summary' - + cat summary_2.yml | jq e '.summary' - exit 1 else echo "CI Success: No failed tests." diff --git a/summary.yml b/summary_2.yml similarity index 99% rename from summary.yml rename to summary_2.yml index 60095cc580..d14eea43f6 100644 --- a/summary.yml +++ b/summary_2.yml @@ -2,7 +2,7 @@ summary: success: true total_detections: 8 total_pass: 8 - total_fail: 0 + total_fail: 2 total_skipped: 0 total_untested: 0 total_experimental_or_deprecated: 0