Skip to content

Commit 101c7aa

Browse files
Output benchmark results directly to step summary
1 parent b704018 commit 101c7aa

1 file changed

Lines changed: 6 additions & 29 deletions

File tree

.github/workflows/push.yml

Lines changed: 6 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -78,38 +78,15 @@ jobs:
7878
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
7979
- name: Update benchmark baseline to latest polyfill
8080
run: npm install --workspace test/benchmark-test -D web-streams-polyfill-baseline@npm:web-streams-polyfill@latest
81-
- name: 'Run benchmark: queue size'
81+
- name: 'Benchmark: queue size'
82+
# language=bash
8283
run: |
83-
npm run benchmark:queue-size --workspace=test/benchmark-test | tee benchmark-queue-size.txt
84+
npm run benchmark:queue-size --workspace=test/benchmark-test | tee --append $GITHUB_STEP_SUMMARY
8485
env:
8586
CI: true
86-
- name: 'Run benchmark: buffered reads'
87+
- name: 'Benchmark: buffered reads'
88+
# language=bash
8789
run: |
88-
npm run benchmark:read-buffered --workspace=test/benchmark-test | tee benchmark-read-buffered.txt
90+
npm run benchmark:read-buffered --workspace=test/benchmark-test | tee --append $GITHUB_STEP_SUMMARY
8991
env:
9092
CI: true
91-
- name: Download previous benchmark data
92-
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5
93-
with:
94-
path: ./cache
95-
key: ${{ runner.os }}-benchmark
96-
- name: 'Store benchmark result: queue size'
97-
uses: benchmark-action/github-action-benchmark@52576c92bccf6ac60c8223ec7eb2565637cae9ba # v1
98-
with:
99-
name: 'Queue size'
100-
tool: 'benchmarkjs'
101-
output-file-path: benchmark-queue-size.txt
102-
external-data-json-path: ./cache/benchmark-data.json
103-
auto-push: false
104-
summary-always: true
105-
github-token: ${{ secrets.GITHUB_TOKEN }}
106-
- name: 'Store benchmark result: buffered reads'
107-
uses: benchmark-action/github-action-benchmark@52576c92bccf6ac60c8223ec7eb2565637cae9ba # v1
108-
with:
109-
name: 'Buffered reads'
110-
tool: 'benchmarkjs'
111-
output-file-path: benchmark-read-buffered.txt
112-
external-data-json-path: ./cache/benchmark-data.json
113-
auto-push: false
114-
summary-always: true
115-
github-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)