17
17
# Job Description: Performs the Data Channel Test between each combination of the client and server for each library.
18
18
interop-tests :
19
19
runs-on : ubuntu-latest
20
+ # See https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#using-job-outputs-in-a-matrix-job
21
+ outputs :
22
+ # Ridiculouse brute force but still better than upload/download unqiuely named artifacts.
23
+ output_1 : ${{ steps.gen_output.outputs.output_1 }}
24
+ output_2 : ${{ steps.gen_output.outputs.output_2 }}
25
+ output_3 : ${{ steps.gen_output.outputs.output_3 }}
26
+ output_4 : ${{ steps.gen_output.outputs.output_4 }}
27
+ output_5 : ${{ steps.gen_output.outputs.output_5 }}
28
+ output_6 : ${{ steps.gen_output.outputs.output_6 }}
29
+ output_7 : ${{ steps.gen_output.outputs.output_7 }}
30
+ output_8 : ${{ steps.gen_output.outputs.output_8 }}
31
+ output_9 : ${{ steps.gen_output.outputs.output_9 }}
20
32
strategy :
21
33
matrix :
22
34
server : ["libdatachannel", "sipsorcery", "werift"]
50
62
echo "Result for ${{ matrix.server }} server and ${{ matrix.client }} client, outcome ${{ steps.check_connection.outcome }}, result ${{ steps.check_connection.outputs.TEST_RESULT }}."
51
63
echo "RESULTS+=['${{ matrix.server }}','${{ matrix.client }}','${{ steps.check_connection.outputs.TEST_RESULT }}']" >> $GITHUB_OUTPUT
52
64
53
- - name : Show step output results
54
- id : collect_results
55
- run : |
56
- echo "results=${{ steps.collect_results.outputs.results }}"
57
-
58
65
# Job Description: Collates the results of the interop tests into a mark down table.
59
66
collate :
60
67
runs-on : ubuntu-latest
@@ -63,15 +70,15 @@ jobs:
63
70
- uses : actions/checkout@v2
64
71
with :
65
72
ref : testresults
66
- - name : Create results file from results.txt
73
+ - name : Create results file from interop test outputs
67
74
run : |
68
75
echo "Collating results from:"
69
- echo "results=${{ steps.collect_results .outputs.results }}"
76
+ echo "results=${{ needs.interop-tests .outputs }}"
70
77
echo "| Server | Client | Test Result |" > DataChannel_Echo_test_results.md
71
78
echo "|--------|--------|-------------|" >> DataChannel_Echo_test_results.md
72
79
73
80
# Read results from the job output
74
- IFS=' ' read -r -a results_array <<< "${{ steps.collect_results .outputs.results }}"
81
+ IFS=' ' read -r -a results_array <<< "${{ needs.interop-tests .outputs }}"
75
82
for result in "${results_array[@]}"; do
76
83
echo "| ${result[0]} | ${result[1]} | ${result[2]} |" >> DataChannel_Echo_test_results.md
77
84
done
0 commit comments