rm branch from params (wont be used) #30
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Benchmark | |
on: | |
push: | |
branches: [main] | |
permissions: | |
pages: write | |
id-token: write | |
contents: write | |
jobs: | |
benchmark: | |
name: Run benchmark | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
- shell: bash | |
run: | | |
pnpm install --no-frozen-lockfile | |
cd packages/object | |
pnpm run benchmark | |
git stash | |
- name: Set cache dir | |
uses: actions/cache@v4 | |
with: | |
path: ./cache | |
key: ${{ runner.os }}-benchmark | |
- name: Store benchmark result | |
uses: benchmark-action/github-action-benchmark@v1 | |
with: | |
name: Benchmark.js Benchmark | |
tool: "benchmarkjs" | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
output-file-path: packages/object/benchmark-output.txt | |
alert-threshold: "10%" | |
comment-on-alert: true | |
fail-on-alert: true | |
benchmark-data-dir-path: ./cache/benchmarks | |
docs: | |
if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
name: Release docs | |
permissions: | |
pages: write | |
id-token: write | |
needs: | |
- benchmark | |
uses: ./.github/workflows/docs.yml |