github.event_name == 'pull_request' && "Test on chore: update dependency @changesets/cli to ^2.27.8 by renovate[bot]" || "Test on main" #352
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: Codspeed Benchmarks | |
run-name: |- | |
github.event_name == 'pull_request' && | |
"Test on ${{ github.event.pull_request.title }} by ${{ github.actor }}" || | |
"Test on main" | |
permissions: | |
contents: read | |
packages: read | |
pull-requests: write | |
on: | |
push: | |
branches: | |
- "main" | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
paths: | |
- ".github/workflows/codspeed.yml" | |
- ".gitignore" | |
- "src/**" | |
- "test/**" | |
- "package.json" | |
- "vitest.config.ts" | |
- "yarn.lock" | |
jobs: | |
init__node: | |
if: | | |
!contains(github.event.pull_request.labels.*.name, 'renovate') && github.event.pull_request.title != 'Version Packages' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/init-node | |
benchmarks: | |
runs-on: ubuntu-latest | |
needs: | |
- init__node | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/init-node | |
- name: Run benchmarks | |
uses: CodSpeedHQ/action@v2 | |
with: | |
run: yarn bench | |
token: ${{ secrets.CODSPEED_TOKEN }} |