0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

bench workflow - use bash as shell (#5546)

This commit is contained in:
Matthew Phillips 2022-12-06 10:19:51 -05:00 committed by GitHub
parent 7809c5c04b
commit 3e16022499
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -48,10 +48,11 @@ jobs:
- name: Run benchmark
id: benchmark-pr
run: |
pnpm run --silent benchmark 1&> ./bench-result.md
pnpm run --silent benchmark 2> ./bench-result.md
result=$(awk '/requests in/' ./bench-result.md)
echo "::set-output name=BENCH_RESULT${{matrix.node-version}}::$result"
echo "$result"
shell: bash
# main benchmark
- uses: actions/checkout@v3
@ -69,10 +70,11 @@ jobs:
- name: Run benchmark
id: benchmark-main
run: |
pnpm run --silent benchmark 1&> ./bench-result.md
pnpm run --silent benchmark 2> ./bench-result.md
result=$(awk '/requests in/' ./bench-result.md)
echo "::set-output name=BENCH_RESULT${{matrix.node-version}}::$result"
echo "$result"
shell: bash
output-benchmark:
if: ${{ github.repository_owner == 'withastro' && github.event.issue.pull_request && startsWith(github.event.comment.body, '!bench') }}