Skip to content

Commit

Permalink
ci(benchmark): embed the JSON report (#178)
Browse files Browse the repository at this point in the history
* ci(benchmark): embed the JSON report

* fix: quoting
  • Loading branch information
KSXGitHub authored Nov 4, 2023
1 parent fa4638d commit 6265c74
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/integrated-benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,14 @@ jobs:
run: |
cargo run --bin=integrated-benchmark -- --scenario=frozen-lockfile --verdaccio HEAD main
cp bench-work-env/BENCHMARK_REPORT.md bench-work-env/BENCHMARK_REPORT_FROZEN_LOCKFILE.md
cp bench-work-env/BENCHMARK_REPORT.json bench-work-env/BENCHMARK_REPORT_FROZEN_LOCKFILE.json
# - name: 'Benchmark: Clean Install'
# shell: bash
# run: |
# cargo run --bin=integrated-benchmark -- --scenario=clean-install --verdaccio HEAD main
# cp bench-work-env/BENCHMARK_REPORT.md bench-work-env/BENCHMARK_REPORT_CLEAN_INSTALL.md
# cp bench-work-env/BENCHMARK_REPORT.json bench-work-env/BENCHMARK_REPORT_FROZEN_LOCKFILE.json

- name: Generate summary
shell: bash
Expand All @@ -125,10 +127,26 @@ jobs:
echo '### Scenario: Frozen Lockfile'
echo
cat bench-work-env/BENCHMARK_REPORT_FROZEN_LOCKFILE.md
echo
echo '<details><summary>BENCHMARK_REPORT.json</summary>'
echo
echo '```json'
cat bench-work-env/BENCHMARK_REPORT_FROZEN_LOCKFILE.json
echo '```'
echo
echo '</details>'
# echo
# echo '### Scenario: Clean Install'
# echo
# cat bench-work-env/BENCHMARK_REPORT_CLEAN_INSTALL.md
# echo
# echo '<details><summary>BENCHMARK_REPORT.json</summary>'
# echo
# echo '```json'
# cat bench-work-env/BENCHMARK_REPORT_CLEAN_INSTALL.json
# echo '```'
# echo
# echo '</details>'
) > bench-work-env/SUMMARY.md
- name: Find Comment
Expand Down

0 comments on commit 6265c74

Please sign in to comment.