mirror of https://github.com/webpack/webpack.git
ci: extract benchmarks to own workflow (#20042)
This commit is contained in:
parent
28f917f956
commit
1adcdb7caf
|
|
@ -0,0 +1,50 @@
|
||||||
|
name: Benchmarks
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
pull_request:
|
||||||
|
branches: [main]
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
benchmark:
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
shard: [1/4, 2/4, 3/4, 4/4]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
issues: write
|
||||||
|
pull-requests: write
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
with:
|
||||||
|
fetch-tags: true
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Use Node.js
|
||||||
|
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
|
||||||
|
with:
|
||||||
|
node-version: lts/*
|
||||||
|
cache: yarn
|
||||||
|
|
||||||
|
- run: yarn --frozen-lockfile
|
||||||
|
|
||||||
|
- run: yarn link --frozen-lockfile || true
|
||||||
|
|
||||||
|
- run: yarn link webpack --frozen-lockfile
|
||||||
|
|
||||||
|
- name: Run benchmarks
|
||||||
|
uses: CodSpeedHQ/action@c6574d0c2a990bca2842ce9af71549c5bfd7fbe0 # v4.2.1
|
||||||
|
with:
|
||||||
|
run: yarn benchmark --ci
|
||||||
|
mode: "instrumentation"
|
||||||
|
token: ${{ secrets.CODSPEED_TOKEN }}
|
||||||
|
env:
|
||||||
|
LAST_COMMIT: 1
|
||||||
|
NEGATIVE_FILTER: on-schedule
|
||||||
|
SHARD: ${{ matrix.shard }}
|
||||||
|
|
@ -5,7 +5,6 @@ on:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
@ -69,44 +68,6 @@ jobs:
|
||||||
|
|
||||||
- run: yarn install --production --frozen-lockfile
|
- run: yarn install --production --frozen-lockfile
|
||||||
|
|
||||||
benchmark:
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
shard: [1/4, 2/4, 3/4, 4/4]
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
permissions:
|
|
||||||
issues: write
|
|
||||||
pull-requests: write
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
||||||
with:
|
|
||||||
fetch-tags: true
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Use Node.js
|
|
||||||
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
|
|
||||||
with:
|
|
||||||
node-version: lts/*
|
|
||||||
cache: yarn
|
|
||||||
|
|
||||||
- run: yarn --frozen-lockfile
|
|
||||||
|
|
||||||
- run: yarn link --frozen-lockfile || true
|
|
||||||
|
|
||||||
- run: yarn link webpack --frozen-lockfile
|
|
||||||
|
|
||||||
- name: Run benchmarks
|
|
||||||
uses: CodSpeedHQ/action@c6574d0c2a990bca2842ce9af71549c5bfd7fbe0 # v4.2.1
|
|
||||||
with:
|
|
||||||
run: yarn benchmark --ci
|
|
||||||
mode: "instrumentation"
|
|
||||||
token: ${{ secrets.CODSPEED_TOKEN }}
|
|
||||||
env:
|
|
||||||
LAST_COMMIT: 1
|
|
||||||
NEGATIVE_FILTER: on-schedule
|
|
||||||
SHARD: ${{ matrix.shard }}
|
|
||||||
|
|
||||||
basic:
|
basic:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue