mirror of
https://github.com/danbulant/oxc
synced 2026-05-25 04:42:10 +00:00
46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
name: Benchmark Resolver
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
types: [opened, synchronize]
|
|
paths:
|
|
- 'crates/oxc_resolver/**'
|
|
- '.github/workflows/benchmark_resolver.yml'
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- 'crates/oxc_resolver/**'
|
|
- '.github/workflows/benchmark_resolver.yml'
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
benchmark:
|
|
name: Resolver Benchmark
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Branch
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Install codspeed
|
|
uses: taiki-e/install-action@v2
|
|
with:
|
|
tool: cargo-codspeed
|
|
|
|
- name: Install Rust Toolchain
|
|
uses: ./.github/actions/rustup
|
|
with:
|
|
shared-key: benchmark
|
|
|
|
- name: Build Benchmark
|
|
run: cargo codspeed build --features codspeed -p oxc_resolver
|
|
|
|
- name: Run benchmark
|
|
uses: CodSpeedHQ/action@v1
|
|
with:
|
|
run: cargo codspeed run
|
|
token: ${{ secrets.CODSPEED_TOKEN }}
|