forked from withastro/astro
-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (56 loc) · 1.61 KB
/
continuous_benchmark.yml
File metadata and controls
65 lines (56 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Continuous benchmark
on:
workflow_dispatch:
pull_request:
branches:
- main
paths:
- 'packages/astro/src/**/*.ts'
- 'benchmark/**'
push:
branches:
- main
paths:
- 'packages/astro/src/**/*.ts'
- 'benchmark/**'
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
FORCE_COLOR: true
CODSPEED: true
jobs:
codspeed:
if: ${{ github.repository_owner == 'withastro' }}
runs-on: ubuntu-latest
strategy:
matrix:
shard: [ "1/4", "2/4", "3/4", "4/4" ]
permissions:
contents: read
pull-requests: write
steps:
- name: Check out repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup PNPM
uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
- name: Setup Node
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
with:
node-version: 24.13.1
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm run build
- name: Setup benchmark projects
working-directory: ./benchmark
run: pnpm run build:bench
timeout-minutes: 15
- name: Run the benchmarks
uses: CodSpeedHQ/action@2ac572851726409c88c02a307f1ea2632a9ea59b # v4.11.0
timeout-minutes: 30
with:
working-directory: ./benchmark
run: pnpm bench --shard=${{ matrix.shard }}
token: ${{ secrets.CODSPEED_TOKEN }}
mode: simulation