Skip to content

chore(deps): update dependency glob to ^10.3.12 #1153

chore(deps): update dependency glob to ^10.3.12

chore(deps): update dependency glob to ^10.3.12 #1153

Workflow file for this run

name: Benchmarks Node
on:
push:
branches:
- 'main' # or "master"
paths:
- '**/*.rs'
- '**/*.toml'
- 'Cargo.lock'
- 'rust-toolchain.toml'
- 'packages/rolldown/**'
- 'packages/bench/**'
- '.github/workflows/**'
- 'package.json'
- 'pnpm-lock.yaml'
pull_request:
types: [opened, synchronize]
paths:
- '**/*.rs'
- '**/*.toml'
- 'Cargo.lock'
- 'rust-toolchain.toml'
- 'packages/rolldown/**'
- 'packages/bench/**'
- '.github/workflows/**'
- 'package.json'
- 'pnpm-lock.yaml'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: ${{ github.ref_name != 'main' }}
jobs:
benchmark-node:
name: Benchmark Node
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
steps:
- name: Checkout Branch
uses: actions/checkout@v4
with:
# Whether Pull submodules for additional files
submodules: false
- name: Download previous benchmark data
uses: actions/checkout@v4
with:
# https://github.com/rolldown/benchmark-results-storage
repository: rolldown/benchmark-results-storage
path: tmp
- name: List Files
run: find -maxdepth 2 -ls
- name: Install Rust
uses: moonrepo/setup-rust@v1
with:
bins: just
cache-base: main
cache-target: release
- name: Install pnpm
uses: pnpm/action-setup@v3
- name: Install node
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Setup benchmark
run: just setup-bench
- name: Build packages
run: just build native release
- name: Run benchmarks
run: pnpm --filter bench run bench-ci
- name: Show/Update benchmark result
uses: benchmark-action/github-action-benchmark@v1
with:
name: 'Node Benchmark'
# What benchmark tool the output.txt came from
tool: 'customSmallerIsBetter'
# Where the output from the benchmark tool is stored
output-file-path: tmp/new-benchmark-node-output.json
# Where the previous data file is stored
external-data-json-path: tmp/benchmark-node-output.json
fail-on-alert: ${{ github.event_name != 'push' }}
summary-always: true
comment-always: false
save-data-file: ${{ github.event_name == 'push' }}
alert-threshold: '110%' # Too much noise in the benchmark results
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Save benchmark result
if: github.event_name == 'push'
# https://github.com/dmnemec/copy_file_to_another_repo_action
uses: dmnemec/copy_file_to_another_repo_action@bbebd3da22e4a37d04dca5f782edd5201cb97083
env:
# Results are stored in https://github.com/rolldown/benchmark-results-storage
API_TOKEN_GITHUB: ${{ secrets.REPO_TOKEN_BENCHMARK_RESULTS }}
with:
source_file: './tmp/benchmark-node-output.json'
destination_repo: 'rolldown/benchmark-results-storage'
user_email: 'github-actions[bot]@users.noreply.github.com'
user_name: 'github-actions[bot]'
commit_message: 'Update `benchmark-node-output.json`'