Skip to content

Fix specs to handle parallelism #318

Fix specs to handle parallelism

Fix specs to handle parallelism #318

Workflow file for this run

name: Benchmarks
on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'Benchmarks/**'
- 'Source/**'
permissions:
contents: write
deployments: write
jobs:
benchmarks:
name: Benchmarks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@v1
with:
dotnet-version: "9.0.x"
- name: Run Mongo container
run: docker run -p 27017:27017 -d cratis/mongodb
- name: Run Benchmarks
working-directory: ./Benchmarks
run: ./run.sh
- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
with:
name: Cratis Benchmarks
tool: 'benchmarkdotnet'
output-file-path: Benchmarks/results/results.json
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: true
# Show alert with commit comment on detecting possible performance regression
alert-threshold: '120%'
comment-on-alert: true
fail-on-alert: true
alert-comment-cc-users: '@einari'
gh-pages-branch: 'main'
skip-fetch-gh-pages: true
benchmark-data-dir-path: 'Documentation/benchmarks'