Skip to content

Commit

Permalink
Make jq command to collect benchmarks more readable
Browse files Browse the repository at this point in the history
Co-authored-by: Aaron Abbott <[email protected]>
  • Loading branch information
NathanielRN and aabmass committed Dec 10, 2020
1 parent 513e9ed commit 52c42ef
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ jobs:
- name: Find and merge benchmarks
# TODO: Add at least one benchmark to every package type to remove this
if: matrix.package == 'core'
run: jq -s '.[0].benchmarks = ([.[].benchmarks] | add) | if .[0].benchmarks == null then null else .[0] end' opentelemetry-*/tests/*${{ matrix.package }}*.json > output.json
run: >-
jq -s '.[0].benchmarks = ([.[].benchmarks] | add)
| if .[0].benchmarks == null then null else .[0] end'
opentelemetry-*/tests/*${{ matrix.package }}*.json > output.json
- name: Report on benchmark results
# TODO: Add at least one benchmark to every package type to remove this
if: matrix.package == 'core'
Expand Down

0 comments on commit 52c42ef

Please sign in to comment.