Skip to content

Commit

Permalink
Log reports
Browse files Browse the repository at this point in the history
  • Loading branch information
krzema12 committed Jul 31, 2024
1 parent c1a1804 commit a081b20
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ jobs:
run: |
for report in $(find ./${{ env.RESULTS_DIR }} -type f -name "*.json")
do
echo "$report:"
cat "$report"
file_name=$(basename "$report")
platform="${file_name%.*}"
# Trim 'it.krzeminski.snakeyaml.engine.kmp.benchmark.' to make benchmark name more readable
Expand All @@ -77,6 +79,8 @@ jobs:
# We need to transform them into this: [{},{}]
ls ${{ env.RESULTS_DIR }}/*.json
jq -s '[ .[] | .[] ]' ${{ env.RESULTS_DIR }}/*.json > $AGGREGATED_REPORT
echo "Aggregated report"
echo "$AGGREGATED_REPORT"
echo "report=$AGGREGATED_REPORT" >> $GITHUB_OUTPUT
- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
Expand Down

0 comments on commit a081b20

Please sign in to comment.