Skip to content

Commit

Permalink
Added some debug logic to see what's going on with reading the JSON file
Browse files Browse the repository at this point in the history
Signed-off-by: Whit Waldo <[email protected]>
  • Loading branch information
WhitWaldo committed Jan 14, 2025
1 parent ae1f250 commit fe3106d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/example-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,21 @@ jobs:
- name: Build & test projects
# disable deterministic builds, just for test run. Deterministic builds break coverage for some reason
run: |
# Debug: Print the contents of the JSON file
echo "Contents of example-e2e-tests.json"
cat ./.github/workflows/example-e2e-tests.json
# Debug: Validate the JSON file
echo "Validating JSON file with jq:"
jq . ./.github/workflows/example-e2e-tests.json
# Parse the projects
projects=$(jq -c '.projects[]' ./.github/workflows/example-e2e-tests.json)
for project in $projects; do
project_name=$(echo $project | jq -r '.project')
# Find the .csproj file in the ./examples directory
csproj_path=$(find ./examples -name "$project_name")
csproj_path=$(find ./examples -name '$project_name')
tests=$(echo $project | jq -c '.tests[]')
for test in $tests; do
Expand Down

0 comments on commit fe3106d

Please sign in to comment.