1
1
name : Package Manager Benchmarks
2
- on :
2
+ on :
3
3
push :
4
4
workflow_dispatch :
5
5
inputs :
@@ -33,15 +33,15 @@ jobs:
33
33
timeout-minutes : 60
34
34
strategy :
35
35
matrix :
36
- fixture : ${{ fromJson(inputs.fixtures || '["next", "astro", "vue", "svelte" ]') }}
37
- variation : ${{ fromJson(inputs.variations || '["cache", "cache +lockfile", "cache+node_modules", "cache+lockfile+node_modules", "clean", "lockfile", "lockfile+node_modules", " node_modules"]') }}
36
+ fixture : ${{ fromJson(inputs.fixtures || '["next"]') }}
37
+ variation : ${{ fromJson(inputs.variations || '["cache+lockfile+ node_modules"]') }}
38
38
include :
39
39
- variation : " run"
40
40
fixture : " run"
41
41
env :
42
- BENCH_INCLUDE : ${{ fromJson(inputs.binaries || '"npm,yarn,berry, pnpm,vlt,bun,deno,nx,turbo,node "') }}
42
+ BENCH_INCLUDE : ${{ fromJson(inputs.binaries || '"pnpm"') }}
43
43
BENCH_WARMUP : ${{ inputs.warmup || '2' }}
44
- BENCH_RUNS : ${{ inputs.runs || '10 ' }}
44
+ BENCH_RUNS : ${{ inputs.runs || '12 ' }}
45
45
steps :
46
46
- uses : actions/checkout@v4
47
47
- name : Install Node
64
64
name : results-${{ matrix.fixture }}-${{ matrix.variation }}
65
65
path : ./results/${{ matrix.fixture }}/${{ matrix.variation }}/
66
66
retention-days : 7
67
- process :
68
- name : ' Process Results'
69
- runs-on : ubuntu-latest
70
- needs : [benchmark]
71
- timeout-minutes : 5
72
- steps :
73
- - uses : actions/checkout@v4
74
- - name : Install Node
75
- uses : actions/setup-node@v4
76
- with :
77
- node-version : ' 24'
78
- - name : Download Results
79
- uses : actions/download-artifact@v4
80
- with :
81
- path : results
82
- pattern : results-*
83
- - name : Process Results
84
- run : |
85
- bash ./scripts/process-results.sh
86
- - name : Upload Processed Results
87
- uses : actions/upload-artifact@v4
88
- with :
89
- name : charts
90
- path : charts
91
- retention-days : 7
92
- deploy :
93
- name : ' Deploy Results'
94
- runs-on : ubuntu-latest
95
- needs : [process]
96
- permissions :
97
- contents : write
98
- # if: github.ref == 'refs/heads/main'
99
- steps :
100
- - uses : actions/checkout@v4
101
- - name : Download Results
102
- uses : actions/download-artifact@v4
103
- with :
104
- name : charts
105
- path : charts/
106
- - name : Deploy to GitHub Pages
107
- uses : peaceiris/actions-gh-pages@v3
108
- with :
109
- github_token : ${{ secrets.GITHUB_TOKEN }}
110
- publish_dir : charts
111
- force_orphan : true
0 commit comments