Skip to content

Use direct stdout

Use direct stdout #8

Workflow file for this run

name: Report qe benchmarks
on:
pull_request:
paths-ignore:
- ".github/**"
- "!.github/workflows/qe-perf.yml"
- ".buildkite/**"
- "*.md"
- "LICENSE"
- "CODEOWNERS"
- "renovate.json"
jobs:
run-benchmarks:
name: Run benchmarks
runs-on: ubuntu-latest
steps:
- name: Checkout PR branch
uses: actions/checkout@v4
# - name: "Setup Node.js"
# uses: actions/setup-node@v4
# with:
# node-version: ${{ matrix.node_version }}
# - name: "Setup pnpm"
# uses: pnpm/action-setup@v2
# with:
# version: 8
# - name: "Get pnpm store directory"
# shell: bash
# run: |
# echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
# - name: "Login to Docker Hub"
# uses: docker/login-action@v3
# continue-on-error: true
# env:
# DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
# DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
# if: "${{ env.DOCKERHUB_USERNAME != '' && env.DOCKERHUB_TOKEN != '' }}"
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}
# - uses: dtolnay/rust-toolchain@stable
# - name: Install wasm-pack
# run: cargo install wasm-pack
# - name: Setup benchmark
# run: make setup-pg-bench
- name: Run benchmarks
id: bench
uses: mathiasvr/command-output@v2.0.0
run: |
echo "Foo\nBar"
- name: Find past report comment
uses: peter-evans/find-comment@v2
id: findReportComment
with:
issue-number: ${{ github.event.pull_request.number }}
body-includes: "<!-- qe-benchmarks -->"
- name: Create or update report
uses: peter-evans/create-or-update-comment@v3
with:
comment-id: ${{ steps.findReportComment.outputs.comment-id }}
issue-number: ${{ github.event.pull_request.number }}
body: |
<!-- qe-benchmarks -->
### Query engine benchmark results
```sh
${{ steps.bench.outputs.stdout }}
```
edit-mode: replace