Skip to content

docs(analyzer): update the link of snaphot testing (#1376) #1

docs(analyzer): update the link of snaphot testing (#1376)

docs(analyzer): update the link of snaphot testing (#1376) #1

name: CSS Formatter Benchmark
on:
workflow_dispatch:
pull_request:
types: [opened, synchronize]
branches:
- main
paths:
- 'crates/biome_css_formatter/**'
- 'crates/biome_formatter/**'
push:
branches:
- main
paths:
- 'crates/biome_css_formatter/**'
- 'crates/biome_formatter/**'
env:
RUST_LOG: info
jobs:
bench:
permissions:
pull-requests: write
name: Bench
runs-on: ubuntu-latest
steps:
- name: Checkout PR Branch
uses: actions/checkout@v4
with:
ref: ${{ steps.sha.outputs.result }}
- name: Install toolchain
uses: moonrepo/setup-rust@v1
with:
channel: stable
cache-target: release
bins: cargo-codspeed
- name: Compile
run: cargo codspeed build -p xtask_bench
- name: Run the benchmarks
uses: CodSpeedHQ/action@v2
timeout-minutes: 30
with:
run: cargo codspeed run css_formatter
token: ${{ secrets.CODSPEED_TOKEN }}