Skip to content

Commit

Permalink
Added more loogs
Browse files Browse the repository at this point in the history
  • Loading branch information
kdivya153 committed Sep 17, 2024
1 parent 99b899a commit b685b2d
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,22 @@ function runTests(){

# Process report.json
echo "HELLO"
# Check if the module directory exists
echo "Checking if directory report/$MODULE exists"
if [ ! -d report/$MODULE ]; then
echo "Module directory report/$MODULE does not exist."
exit 1
fi

# Now check for the report.json file in the correct directory
echo "Checking for report.json at report/$MODULE/report.json"
if [ -f report/$MODULE/report.json ]; then
jq -r '.' report/$MODULE/report.json > tmp.json && mv tmp.json report/$MODULE/report.json
jq '.report' report/$MODULE/report.json > tmp.json && mv tmp.json report/$MODULE/report.json
echo "Found report.json"
jq -r '.' report/$MODULE/report.json > tmp.json && mv tmp.json report/$MODULE/report.json
jq '.report' report/$MODULE/report.json > tmp.json && mv tmp.json report/$MODULE/report.json
else
echo "report.json not found at report/$MODULE/report.json"
exit 1
echo "report.json not found at report/$MODULE/report.json"
exit 1
fi

node -e '
Expand Down

0 comments on commit b685b2d

Please sign in to comment.