Skip to content

Add codspeed run action #1

Add codspeed run action

Add codspeed run action #1

Workflow file for this run

name: CodSpeed
on:
push:
branches:
- "develop"
- "codspeed"

Check failure on line 7 in .github/workflows/codspeed.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/codspeed.yaml

Invalid workflow file

You have an error in your yaml syntax on line 7
# Run on pull requests
pull_request:
# `workflow_dispatch` allows CodSpeed to trigger backtest
# performance analysis in order to generate initial data.
workflow_dispatch:
jobs:
benchmarks:
name: Run benchmarks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.toolchain }}
- name: Run benchmarks
uses: CodSpeedHQ/action@v3
with:
token: ${{ secrets.CODSPEED_TOKEN }}
run: "cargo bench"