-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
51e728f
commit 806438c
Showing
2 changed files
with
90 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: Run hyperfine benchmark | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
LOCATION: | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
hyperfine: | ||
steps: | ||
- name: configuration | ||
run: | | ||
echo "LOCATION: ${{ inputs.LOCATION }}" | ||
echo "COREPACK_ENABLE_STRICT: ${{ COREPACK_ENABLE_STRICT }}" | ||
echo "COREPACK_ENABLE_AUTO_PIN: ${{ COREPACK_ENABLE_AUTO_PIN }}" | ||
echo "YARN_ENABLE_IMMUTABLE_INSTALLS: ${{ YARN_ENABLE_IMMUTABLE_INSTALLS}}" | ||
- name: run | ||
run: | | ||
cd ${{ inputs.LOCATION }} | ||
hyperfine --export-json --warmup 3 --runs 10 -i --prepare ' \ | ||
rm -rf ./node_modules/; \ | ||
rm -rf .npm*; \ | ||
rm -rf .yarn*; \ | ||
rm -rf .pnp*; \ | ||
rm -rf .vlt*; \ | ||
rm -rf package-lock.json; \ | ||
rm -rf yarn.lock; \ | ||
rm -rf pnpm-lock.yaml; \ | ||
rm -rf vlt-lock.json; \ | ||
rm -rf bun.lockb; \ | ||
rm -rf deno.lock; \ | ||
npm cache clean --force; \ | ||
yarn@1 cache clean --all; \ | ||
yarn@latest cache clean --all'; \ | ||
pnpm cache delete *; \ | ||
rm -rf $(vlt config get cache); \ | ||
rm -rf $(bun pm cache); \ | ||
deno clean; \ | ||
npm pkg delete packageManager; \ | ||
git add .; \ | ||
git stash;' \ | ||
'npm install --no-audit --no-fund' \ | ||
'corepack yarn@1 install' \ | ||
'corepack yarn@latest install' \ | ||
'corepack pnpm@latest install' \ | ||
'vlt install' \ | ||
'bun install' \ | ||
'deno install --allow-scripts' | ||