Skip to content

Commit 3d9f0cd

Browse files
committedJan 10, 2025
revert composable action
1 parent 6f0e62e commit 3d9f0cd

File tree

2 files changed

+134
-75
lines changed

2 files changed

+134
-75
lines changed
 

‎.github/actions/run.yaml

-56
This file was deleted.

‎.github/workflows/benchmark.yaml

+134-19
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ jobs:
3333

3434
steps:
3535

36+
- uses: actions/checkout@v4
37+
3638
- name: Install Node
3739
uses: actions/setup-node@v2
3840
with:
@@ -44,7 +46,7 @@ jobs:
4446
npm install -g npm@latest vlt@latest bun@latest deno-bin@latest --silent
4547
corepack enable yarn pnpm
4648
47-
- name: Log Package Manager Versions
49+
- name: Package Manager Versions
4850
run: |
4951
echo "npm $(npm -v)"
5052
echo "vlt $(vlt -v)"
@@ -54,27 +56,140 @@ jobs:
5456
echo "bun $(bun -v)"
5557
echo "$(deno -v)"
5658
57-
- uses: actions/checkout@v4
59+
- name: Configuration
60+
run: |
61+
echo "COREPACK_ENABLE_STRICT: ${{ env.COREPACK_ENABLE_STRICT }}"
62+
echo "COREPACK_ENABLE_AUTO_PIN: ${{ env.COREPACK_ENABLE_AUTO_PIN }}"
63+
echo "YARN_ENABLE_IMMUTABLE_INSTALLS: ${{ env.YARN_ENABLE_IMMUTABLE_INSTALLS }}"
64+
5865
- name: Run Project Benchmarks (Next)
59-
uses: ./.github/actions/run.yaml
60-
with:
61-
LOCATION: next
62-
OS: ${{ matrix.platform.os }}
66+
run: |
67+
cd next
68+
hyperfine --export-json --warmup 3 --runs 10 -i --prepare ' \
69+
rm -rf ./node_modules/; \
70+
rm -rf .npm*; \
71+
rm -rf .yarn*; \
72+
rm -rf .pnp*; \
73+
rm -rf .vlt*; \
74+
rm -rf package-lock.json; \
75+
rm -rf yarn.lock; \
76+
rm -rf pnpm-lock.yaml; \
77+
rm -rf vlt-lock.json; \
78+
rm -rf bun.lockb; \
79+
rm -rf deno.lock; \
80+
npm cache clean --force; \
81+
yarn@1 cache clean --all; \
82+
yarn@latest cache clean --all; \
83+
pnpm cache delete *; \
84+
rm -rf $(vlt config get cache); \
85+
rm -rf $(bun pm cache); \
86+
deno clean; \
87+
npm pkg delete packageManager; \
88+
git add .; \
89+
git stash' \
90+
'npm install --no-audit --no-fund' \
91+
'corepack yarn@1 install' \
92+
'corepack yarn@latest install' \
93+
'corepack pnpm@latest install' \
94+
'vlt install' \
95+
'bun install' \
96+
'deno install --allow-scripts'
6397
6498
- name: Run Project Benchmarks (Astro)
65-
uses: ./.github/actions/run.yaml
66-
with:
67-
LOCATION: astro
68-
OS: ${{ matrix.platform.os }}
69-
99+
run: |
100+
cd astro
101+
hyperfine --export-json --warmup 3 --runs 10 -i --prepare ' \
102+
rm -rf ./node_modules/; \
103+
rm -rf .npm*; \
104+
rm -rf .yarn*; \
105+
rm -rf .pnp*; \
106+
rm -rf .vlt*; \
107+
rm -rf package-lock.json; \
108+
rm -rf yarn.lock; \
109+
rm -rf pnpm-lock.yaml; \
110+
rm -rf vlt-lock.json; \
111+
rm -rf bun.lockb; \
112+
rm -rf deno.lock; \
113+
npm cache clean --force; \
114+
yarn@1 cache clean --all; \
115+
yarn@latest cache clean --all; \
116+
pnpm cache delete *; \
117+
rm -rf $(vlt config get cache); \
118+
rm -rf $(bun pm cache); \
119+
deno clean; \
120+
npm pkg delete packageManager; \
121+
git add .; \
122+
git stash' \
123+
'npm install --no-audit --no-fund' \
124+
'corepack yarn@1 install' \
125+
'corepack yarn@latest install' \
126+
'corepack pnpm@latest install' \
127+
'vlt install' \
128+
'bun install' \
129+
'deno install --allow-scripts'
130+
70131
- name: Run Project Benchmarks (Svelte)
71-
uses: ./.github/actions/run.yaml
72-
with:
73-
LOCATION: svelte
74-
OS: ${{ matrix.platform.os }}
132+
run: |
133+
cd svelte
134+
hyperfine --export-json --warmup 3 --runs 10 -i --prepare ' \
135+
rm -rf ./node_modules/; \
136+
rm -rf .npm*; \
137+
rm -rf .yarn*; \
138+
rm -rf .pnp*; \
139+
rm -rf .vlt*; \
140+
rm -rf package-lock.json; \
141+
rm -rf yarn.lock; \
142+
rm -rf pnpm-lock.yaml; \
143+
rm -rf vlt-lock.json; \
144+
rm -rf bun.lockb; \
145+
rm -rf deno.lock; \
146+
npm cache clean --force; \
147+
yarn@1 cache clean --all; \
148+
yarn@latest cache clean --all; \
149+
pnpm cache delete *; \
150+
rm -rf $(vlt config get cache); \
151+
rm -rf $(bun pm cache); \
152+
deno clean; \
153+
npm pkg delete packageManager; \
154+
git add .; \
155+
git stash' \
156+
'npm install --no-audit --no-fund' \
157+
'corepack yarn@1 install' \
158+
'corepack yarn@latest install' \
159+
'corepack pnpm@latest install' \
160+
'vlt install' \
161+
'bun install' \
162+
'deno install --allow-scripts'
75163
76164
- name: Run Project Benchmarks (Vue)
77-
uses: ./.github/actions/run.yaml
78-
with:
79-
LOCATION: vue
80-
OS: ${{ matrix.platform.os }}
165+
run: |
166+
cd vue
167+
hyperfine --export-json --warmup 3 --runs 10 -i --prepare ' \
168+
rm -rf ./node_modules/; \
169+
rm -rf .npm*; \
170+
rm -rf .yarn*; \
171+
rm -rf .pnp*; \
172+
rm -rf .vlt*; \
173+
rm -rf package-lock.json; \
174+
rm -rf yarn.lock; \
175+
rm -rf pnpm-lock.yaml; \
176+
rm -rf vlt-lock.json; \
177+
rm -rf bun.lockb; \
178+
rm -rf deno.lock; \
179+
npm cache clean --force; \
180+
yarn@1 cache clean --all; \
181+
yarn@latest cache clean --all; \
182+
pnpm cache delete *; \
183+
rm -rf $(vlt config get cache); \
184+
rm -rf $(bun pm cache); \
185+
deno clean; \
186+
npm pkg delete packageManager; \
187+
git add .; \
188+
git stash' \
189+
'npm install --no-audit --no-fund' \
190+
'corepack yarn@1 install' \
191+
'corepack yarn@latest install' \
192+
'corepack pnpm@latest install' \
193+
'vlt install' \
194+
'bun install' \
195+
'deno install --allow-scripts'

0 commit comments

Comments
 (0)