mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
bench workflow - pipe stderr (#5543)
This commit is contained in:
parent
fabd9124bd
commit
7809c5c04b
1 changed files with 4 additions and 2 deletions
6
.github/workflows/benchmark.yml
vendored
6
.github/workflows/benchmark.yml
vendored
|
@ -48,9 +48,10 @@ jobs:
|
|||
- name: Run benchmark
|
||||
id: benchmark-pr
|
||||
run: |
|
||||
pnpm run --silent benchmark > ./bench-result.md
|
||||
pnpm run --silent benchmark 1&> ./bench-result.md
|
||||
result=$(awk '/requests in/' ./bench-result.md)
|
||||
echo "::set-output name=BENCH_RESULT${{matrix.node-version}}::$result"
|
||||
echo "$result"
|
||||
|
||||
# main benchmark
|
||||
- uses: actions/checkout@v3
|
||||
|
@ -68,9 +69,10 @@ jobs:
|
|||
- name: Run benchmark
|
||||
id: benchmark-main
|
||||
run: |
|
||||
pnpm run --silent benchmark > ./bench-result.md
|
||||
pnpm run --silent benchmark 1&> ./bench-result.md
|
||||
result=$(awk '/requests in/' ./bench-result.md)
|
||||
echo "::set-output name=BENCH_RESULT${{matrix.node-version}}::$result"
|
||||
echo "$result"
|
||||
|
||||
output-benchmark:
|
||||
if: ${{ github.repository_owner == 'withastro' && github.event.issue.pull_request && startsWith(github.event.comment.body, '!bench') }}
|
||||
|
|
Loading…
Reference in a new issue