Skip to content

fix(cli): improve code actions filtering #830

fix(cli): improve code actions filtering

fix(cli): improve code actions filtering #830

name: Benchmarks Tailwind
on:
workflow_dispatch:
merge_group:
pull_request:
types: [ opened, synchronize ]
branches:
- main
- next
paths:
- "Cargo.lock"
- "crates/biome_tailwind_parser/**/*.rs"
- "crates/biome_tailwind_*/**/*.rs"
- "crates/biome_rowan/**/*.rs"
- "crates/biome_parser/**/*.rs"
push:
branches:
- main
- next
paths:
- "Cargo.lock"
- "crates/biome_tailwind_parser/**/*.rs"
- "crates/biome_tailwind_*/**/*.rs"
- "crates/biome_rowan/**/*.rs"
- "crates/biome_parser/**/*.rs"
env:
RUST_LOG: info
jobs:
bench:
permissions:
contents: read
pull-requests: write
name: Bench
runs-on: depot-ubuntu-24.04-arm-16
strategy:
matrix:
package:
- biome_tailwind_parser
steps:
- name: Checkout PR Branch
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}
- name: Install toolchain
uses: moonrepo/setup-rust@abb2d32350334249b178c401e5ec5836e0cd88d3 # v1.3.0
with:
channel: stable
cache-target: release
bins: cargo-codspeed
cache-base: main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Compile
timeout-minutes: 20
run: cargo codspeed build -p ${{ matrix.package }}
env:
CARGO_BUILD_JOBS: 3 # Default is 4 (equals to the vCPU count of the runner), which leads OOM on cargo build
- name: Run the benchmarks
uses: CodSpeedHQ/action@1c8ae4843586d3ba879736b7f6b7b0c990757fab # v4.12.1
timeout-minutes: 50
with:
mode: simulation
run: cargo codspeed run
token: ${{ secrets.CODSPEED_TOKEN }}