-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (46 loc) · 1.35 KB
/
qa-benchmark.yml
File metadata and controls
55 lines (46 loc) · 1.35 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
name: QA Benchmark
on:
workflow_dispatch:
pull_request:
branches: [ master ]
paths:
- 'scripts/qa-benchmark.mjs'
- 'scripts/qa-turbo.mjs'
- 'turbo.json'
- 'package.json'
- 'pnpm-lock.yaml'
- '.github/workflows/qa-benchmark.yml'
permissions:
contents: read
jobs:
turbo-qa-benchmark:
name: Turbo QA Benchmark (Ubuntu)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
# pnpm 版本统一由 package.json 的 packageManager 决定,避免与 action 输入重复声明。
- name: Install pnpm
uses: pnpm/action-setup@v6
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: 24
cache: 'pnpm'
- name: Install Dependencies
run: pnpm install --frozen-lockfile
- name: Run QA benchmark
env:
FORCE_COLOR: 1
TURBO_REMOTE_CACHE: ${{ vars.TURBO_REMOTE_CACHE || '0' }}
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
run: |
pnpm qa:benchmark -- --output-dir artifacts/qa-benchmarks
- name: Upload QA benchmark artifacts
uses: actions/upload-artifact@v7
with:
name: qa-benchmark
path: artifacts/qa-benchmarks
retention-days: 14