Skip to content

Commit

Permalink
ci: refactor perms and change output summaries (#237)
Browse files Browse the repository at this point in the history
  • Loading branch information
d-roak committed Nov 13, 2024
1 parent 329514d commit cd58082
Showing 1 changed file with 3 additions and 6 deletions.
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

0 comments on commit cd58082

Please sign in to comment.