Skip to content

Commit 4d63b90

Browse files
committed
jq.
1 parent 828a2b7 commit 4d63b90

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/datachannel_echo-test.yml

+8-5
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,16 @@ jobs:
7070
- name: Create results file from interop test outputs
7171
run: |
7272
echo "Collating...."
73-
echo "results=${{ toJSON(needs.interoptests.outputs) }}"
73+
74+
results="${{ toJSON(needs.interop-tests.outputs) }}"
75+
echo "results=${results}"
76+
7477
echo "| Server | Client | Test Result |" > DataChannel_Echo_test_results.md
7578
echo "|--------|--------|-------------|" >> DataChannel_Echo_test_results.md
7679
77-
# Define the server and client combinations
78-
servers=("libdatachannel" "sipsorcery" "werift")
79-
clients=("libdatachannel" "sipsorcery" "werift")
80+
echo "$results" | jq -r 'to_entries | .[] |
81+
capture("result_(?<server>.+)_(?<client>.+)") |
82+
"\(.server) | \(.client) | \(.value) |"' >> DataChannel_Echo_test_results.md
8083
8184
cat DataChannel_Echo_test_results.md
8285
@@ -88,6 +91,6 @@ jobs:
8891
git pull
8992
#git add DataChannel_Echo_test_results.md DataChannel_Echo_test_results.png
9093
#git commit DataChannel_Echo_test_results.md DataChannel_Echo_test_results.png -m "Automated data channel echo test results."
91-
#git add DataChannel_Echo_test_results.md
94+
git add DataChannel_Echo_test_results.md
9295
git commit DataChannel_Echo_test_results.md -m "Automated data channel echo test results."
9396
git push

0 commit comments

Comments
 (0)