Skip to content

Commit

Permalink
updating test
Browse files Browse the repository at this point in the history
  • Loading branch information
patel-bhavin committed Jul 2, 2024
1 parent 7d72696 commit 446e448
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/unit-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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."
Expand Down
2 changes: 1 addition & 1 deletion summary.yml → summary_2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 446e448

Please sign in to comment.