Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: refactor perms and change output summaries #237

Merged
merged 15 commits into from
Nov 6, 2024
9 changes: 3 additions & 6 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,11 @@ on:
permissions:
pages: write
id-token: write
pull-requests: write
contents: write

jobs:
benchmark:
name: Run benchmark
permissions:
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -26,8 +24,6 @@ jobs:
pnpm install --no-frozen-lockfile
cd packages/object
pnpm run benchmark
# possible lockfile and version.ts changes
git stash
- name: Set cache dir
uses: actions/cache@v4
Expand All @@ -44,7 +40,8 @@ jobs:
output-file-path: packages/object/benchmark-output.txt
alert-threshold: "200%"
fail-on-alert: true
comment-always: true
comment-on-alert: ${{ github.event_name == 'push' }}
summary-always: true
gh-pages-branch: main
skip-fetch-gh-pages: ${{ github.event_name == 'push' }}
benchmark-data-dir-path: ./cache/benchmarks
Expand Down