From 3d9f0cd59fd18bfbb4493f6e44e13afbd09bb7c0 Mon Sep 17 00:00:00 2001 From: Darcy Clarke Date: Fri, 10 Jan 2025 00:03:36 +0000 Subject: [PATCH] revert composable action --- .github/actions/run.yaml | 56 ----------- .github/workflows/benchmark.yaml | 153 +++++++++++++++++++++++++++---- 2 files changed, 134 insertions(+), 75 deletions(-) delete mode 100644 .github/actions/run.yaml diff --git a/.github/actions/run.yaml b/.github/actions/run.yaml deleted file mode 100644 index 3d6c91a..0000000 --- a/.github/actions/run.yaml +++ /dev/null @@ -1,56 +0,0 @@ -eal# yaml-language-server: $schema=https://json.schemastore.org/github-workflow-template.json - -name: Run hyperfine benchmark - -on: - workflow_call: - inputs: - LOCATION: - required: true - type: string - OS: - required: true - type: string -jobs: - runs-on: ${{ inputs.OS }} - hyperfine: - steps: - - uses: actions/checkout@v4 - - name: configuration - run: | - echo "LOCATION: ${{ inputs.LOCATION }}" - echo "COREPACK_ENABLE_STRICT: ${{ env.COREPACK_ENABLE_STRICT }}" - echo "COREPACK_ENABLE_AUTO_PIN: ${{ env.COREPACK_ENABLE_AUTO_PIN }}" - echo "YARN_ENABLE_IMMUTABLE_INSTALLS: ${{ env.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' diff --git a/.github/workflows/benchmark.yaml b/.github/workflows/benchmark.yaml index 6e1cfb4..3389a70 100644 --- a/.github/workflows/benchmark.yaml +++ b/.github/workflows/benchmark.yaml @@ -33,6 +33,8 @@ jobs: steps: + - uses: actions/checkout@v4 + - name: Install Node uses: actions/setup-node@v2 with: @@ -44,7 +46,7 @@ jobs: npm install -g npm@latest vlt@latest bun@latest deno-bin@latest --silent corepack enable yarn pnpm - - name: Log Package Manager Versions + - name: Package Manager Versions run: | echo "npm $(npm -v)" echo "vlt $(vlt -v)" @@ -54,27 +56,140 @@ jobs: echo "bun $(bun -v)" echo "$(deno -v)" - - uses: actions/checkout@v4 + - name: Configuration + run: | + echo "COREPACK_ENABLE_STRICT: ${{ env.COREPACK_ENABLE_STRICT }}" + echo "COREPACK_ENABLE_AUTO_PIN: ${{ env.COREPACK_ENABLE_AUTO_PIN }}" + echo "YARN_ENABLE_IMMUTABLE_INSTALLS: ${{ env.YARN_ENABLE_IMMUTABLE_INSTALLS }}" + - name: Run Project Benchmarks (Next) - uses: ./.github/actions/run.yaml - with: - LOCATION: next - OS: ${{ matrix.platform.os }} + run: | + cd next + 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' - name: Run Project Benchmarks (Astro) - uses: ./.github/actions/run.yaml - with: - LOCATION: astro - OS: ${{ matrix.platform.os }} - + run: | + cd astro + 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' + - name: Run Project Benchmarks (Svelte) - uses: ./.github/actions/run.yaml - with: - LOCATION: svelte - OS: ${{ matrix.platform.os }} + run: | + cd svelte + 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' - name: Run Project Benchmarks (Vue) - uses: ./.github/actions/run.yaml - with: - LOCATION: vue - OS: ${{ matrix.platform.os }} + run: | + cd vue + 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'