File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 4444 - name : Aggregate Reports
4545 if : failure()
4646 run : |
47+ echo >>$GITHUB_STEP_SUMMARY
48+ echo '```json' >>$GITHUB_STEP_SUMMARY
49+ jq --slurp --compact-output '.' reports/*/report.json >>$GITHUB_STEP_SUMMARY
50+ echo '```' >>$GITHUB_STEP_SUMMARY
51+
4752 cat <<EOF >>$GITHUB_STEP_SUMMARY
4853 # Failing Tests
4954
@@ -58,12 +63,13 @@ jobs:
5863 <tbody>
5964 EOF
6065
66+ jq --version
6167 jq --slurp --raw-output '
6268 map(.failed_tests) | flatten | map({
6369 klass,
6470 NAME,
6571 failure: .failures[0],
66- source_url: .source_location | if .[0] | contains("/gems/") then
72+ source_url: .source_location | if ( .[0] | contains("/gems/") ) then
6773 (.[0] | capture("rails-(?<sha>.*?)/(?<path>.*)")) *
6874 {line: .[1], server: "https://github.com", repo: "rails/rails"}
6975 else
You can’t perform that action at this time.
0 commit comments