From c6e0c0b98b55963d04376be4cd0008b534fd2b52 Mon Sep 17 00:00:00 2001 From: Valentin Agachi Date: Fri, 15 Nov 2024 10:39:07 +0100 Subject: [PATCH] chore: Use MongoDB v8 for benchmark --- .github/workflows/benchmark.yaml | 53 +++++++++++++++++--------------- 1 file changed, 28 insertions(+), 25 deletions(-) diff --git a/.github/workflows/benchmark.yaml b/.github/workflows/benchmark.yaml index e80e60ca..691a1e94 100644 --- a/.github/workflows/benchmark.yaml +++ b/.github/workflows/benchmark.yaml @@ -1,6 +1,9 @@ name: Benchmark on: + push: + branches: + - chore/benchmark-mongodb-v8 schedule: - cron: '30 5 15 * *' @@ -18,35 +21,35 @@ jobs: cache: 'pnpm' - uses: supercharge/mongodb-github-action@1.11.0 with: - mongodb-version: 6.0 + mongodb-version: 8.0 - id: date run: | echo "date=$(date +%Y-%m-%d)" >> $GITHUB_OUTPUT - run: node -v - run: pnpm install --frozen-lockfile - run: pnpm benchmark - - uses: actions/github-script@v7.0.1 - id: results - with: - script: | - core.setOutput('results', require('./docs/data.json').benchmark.results); - - id: create-pr - uses: peter-evans/create-pull-request@v7 - with: - add-paths: docs/data.json - base: main - body: | - Automated benchmark results generated on ${{ steps.date.outputs.date }} + # - uses: actions/github-script@v7.0.1 + # id: results + # with: + # script: | + # core.setOutput('results', require('./docs/data.json').benchmark.results); + # - id: create-pr + # uses: peter-evans/create-pull-request@v7 + # with: + # add-paths: docs/data.json + # base: main + # body: | + # Automated benchmark results generated on ${{ steps.date.outputs.date }} - ``` - ${{ steps.results.outputs.results }} - ``` - branch: docs/benchmark-${{ steps.date.outputs.date }} - commit-message: 'docs: Benchmark results ${{ steps.date.outputs.date }}' - delete-branch: true - reviewers: avaly - title: 'docs: Benchmark results ${{ steps.date.outputs.date }}' - - if: ${{ steps.create-pr.outputs.pull-request-number }} - run: | - echo "Pull Request Number - ${{ steps.create-pr.outputs.pull-request-number }}" - echo "Pull Request URL - ${{ steps.create-pr.outputs.pull-request-url }}" + # ``` + # ${{ steps.results.outputs.results }} + # ``` + # branch: docs/benchmark-${{ steps.date.outputs.date }} + # commit-message: 'docs: Benchmark results ${{ steps.date.outputs.date }}' + # delete-branch: true + # reviewers: avaly + # title: 'docs: Benchmark results ${{ steps.date.outputs.date }}' + # - if: ${{ steps.create-pr.outputs.pull-request-number }} + # run: | + # echo "Pull Request Number - ${{ steps.create-pr.outputs.pull-request-number }}" + # echo "Pull Request URL - ${{ steps.create-pr.outputs.pull-request-url }}"