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 4747 cat <<EOF >>$GITHUB_STEP_SUMMARY
4848 # Failing Tests
4949
50+ echo >>$GITHUB_STEP_SUMMARY
51+ echo '```json' >>$GITHUB_STEP_SUMMARY
52+ jq --slurp --compact-output '.' reports/*/report.json >>$GITHUB_STEP_SUMMARY
53+ echo '```' >>$GITHUB_STEP_SUMMARY
54+
5055 <table>
5156 <thead>
5257 <tr>
@@ -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