Skip to content

chore: to_lowercase -> to_lowercase_cow #4132

chore: to_lowercase -> to_lowercase_cow

chore: to_lowercase -> to_lowercase_cow #4132

Workflow file for this run

name: Benchmarks
on:
workflow_dispatch:
pull_request:
types: [ opened, synchronize ]
branches:
- main
paths:
- 'Cargo.lock'
- 'crates/**_parser/**/*.rs'
- 'crates/**_formatter/**/*.rs'
- 'crates/**_analyze/**/*.rs'
push:
branches:
- main
paths:
- 'Cargo.lock'
- 'crates/**_parser/**/*.rs'
- 'crates/**_formatter/**/*.rs'
- 'crates/**_analyze/**/*.rs'
env:
RUST_LOG: info
jobs:
bench:
permissions:
pull-requests: write
name: Bench
runs-on: ubuntu-latest
steps:
- name: Checkout PR Branch
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
ref: ${{ steps.sha.outputs.result }}
- name: Install toolchain
uses: moonrepo/setup-rust@e013866c4215f77c925f42f60257dec7dd18836e # v1.2.1
with:
channel: stable
cache-target: release
bins: cargo-codspeed
cache-base: main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Compile
run: cargo codspeed build --features codspeed -p xtask_bench
- name: Run the benchmarks
uses: CodSpeedHQ/action@9481de2550a3d73cdac24ddd54ee6b9ee31f7ec2 # v2.4.5
timeout-minutes: 30
with:
run: cargo codspeed run
token: ${{ secrets.CODSPEED_TOKEN }}