Skip to content

Commit

Permalink
feat(CI): add benchmarks job for pull requests
Browse files Browse the repository at this point in the history
Signed-off-by: Tarek <[email protected]>
  • Loading branch information
tareknaser committed Dec 19, 2024
1 parent e3585c4 commit fd000d3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 22 deletions.
22 changes: 0 additions & 22 deletions .github/workflows/benchmark.yml

This file was deleted.

16 changes: 16 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,19 @@ jobs:
- name: Run Java Tests
run: gradle test
working-directory: ./java

benchmarks:
name: Run Benchmarks
runs-on: ubuntu-latest
needs: java-bindings
# We only want to run benchmarks in case of a pull request
if: ${{ github.event_name == 'pull_request' }}

steps:
- uses: actions/checkout@v4

- name: Run Criterion
uses: boa-dev/criterion-compare-action@v3
with:
branchName: ${{ github.base_ref }}
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit fd000d3

Please sign in to comment.