bench workflow - use bash as shell (#5546)
This commit is contained in:
parent
7809c5c04b
commit
3e16022499
1 changed files with 4 additions and 2 deletions
6
.github/workflows/benchmark.yml
vendored
6
.github/workflows/benchmark.yml
vendored
|
@ -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') }}
|
||||
|
|
Loading…
Reference in a new issue