fix: fetch interval should match default #30
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run benchmarks | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
jmh_benchmark: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
java-version: 17 | |
- name: Build client | |
run: | | |
mvn clean install -DskipTests | |
- name: Get project version | |
id: unleash | |
run: | | |
VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout) | |
echo "::set-output name=version::$VERSION" | |
- name: Build and run benchmark | |
run: | | |
cd ./benches/jmh/unleash-client-benches | |
mvn clean install -Dunleash.version=${{ steps.unleash.outputs.version }} | |
java -jar target/benchmarks.jar -w1 -rf json -rff output.json | |
- name: JMH Benchmark Action | |
uses: kitlangton/jmh-benchmark-action@main | |
with: | |
jmh-output-path: benches/jmh/unleash-client-benches/output.json | |
github-token: ${{ secrets.GITHUB_TOKEN }} |