From c3542196758fed71ac3a975995b58247fca736ca Mon Sep 17 00:00:00 2001 From: Henrik Ingo Date: Mon, 20 Jan 2025 04:49:52 +0200 Subject: [PATCH] =?UTF-8?q?Add=20Nyrki=C3=B6=20change=20point=20detection?= =?UTF-8?q?=20to=20'cargo=20bench'=20workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This adds a separate push-only.yml workflow. For now pull request API wasn't integrated yet, so shouldn't run on PRs. disable cargo color --- .github/workflows/push_only.yml | 42 +++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/push_only.yml diff --git a/.github/workflows/push_only.yml b/.github/workflows/push_only.yml new file mode 100644 index 000000000..1c10bbb62 --- /dev/null +++ b/.github/workflows/push_only.yml @@ -0,0 +1,42 @@ +name: Benchmarks+Nyrkiö + +# Pull request support isn't integrated to the github-action-benchmark so run only post-merge +on: + push: + branches: [ "main", "master", "notmain", "add-nyrkio" ] + +env: + CARGO_TERM_COLOR: never + +jobs: + bench: + runs-on: ubuntu-latest + environment: test + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v4 + with: + node-version: 20 + # cache: 'npm' + # - name: Install dependencies + # run: npm install && npm run build + + - name: Bench + run: cargo bench 2>&1 | tee output.txt + + - name: Analyze benchmark result with Nyrkiö + uses: nyrkio/github-action-benchmark@HEAD + with: + name: turso + tool: criterion + output-file-path: output.txt + fail-on-alert: true + # Nyrkiö configuration + nyrkio-enable: true + # Get yours from https://nyrkio.com/docs/getting-started + nyrkio-token: ${{ secrets.NYRKIO_JWT_TOKEN }} + + # Old way... + # Explicitly set this to null. We don't want threshold based alerts today. + external-data-json-path: null + gh-repository: null