From 4e733baeffedc334e84224539bc4b66964288b89 Mon Sep 17 00:00:00 2001 From: Andre Wiggins Date: Fri, 8 Mar 2024 13:44:33 -0500 Subject: [PATCH] Workflow fixes --- .github/workflows/run-bench.yml | 32 ++++++++++++++++++++++++-------- 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/.github/workflows/run-bench.yml b/.github/workflows/run-bench.yml index c381c3f30c..181cef7751 100644 --- a/.github/workflows/run-bench.yml +++ b/.github/workflows/run-bench.yml @@ -63,25 +63,41 @@ jobs: with: name: bench-environment - name: Move tarballs from env to correct location - working-directory: benchmarks run: | ls -al - mv preact-local.tgz dependencies/preact/local-pinned/preact-local-pinned.tgz - ls -al dependencies/preact/local-pinned - mv preact-main.tgz dependencies/preact/main/preact-main.tgz - ls -al dependencies/preact/main + mv preact-local.tgz benchmarks/dependencies/preact/local-pinned/preact-local-pinned.tgz + ls -al benchmarks/dependencies/preact/local-pinned + mv preact-main.tgz benchmarks/dependencies/preact/main/preact-main.tgz + ls -al benchmarks/dependencies/preact/main - name: Install deps working-directory: benchmarks - run: pnpm install + # Set the CHROMEDRIVER_FILEPATH so the chromedriver npm package uses the + # correct binary when its installed + run: | + export CHROMEDRIVER_FILEPATH=$(which chromedriver) + pnpm install - name: List dependency directories working-directory: benchmarks run: | + echo echo "$ ls -al dependencies/preact/local-pinned" ls -al dependencies/preact/local-pinned + echo echo "$ ls -al dependencies/preact/local-pinned/node_modules" ls -al dependencies/preact/local-pinned/node_modules - echo "$ ls -al node_modules/.pnpm/tachometer@*/node_modules/tachometer/node_modules" - ls -al node_modules/.pnpm/tachometer@*/node_modules/tachometer/node_modules + echo + echo "$ ls -a dependencies/preact/local-pinned/node_modules/preact" + ls -a dependencies/preact/local-pinned/node_modules/preact + echo + echo "$ ls -a node_modules/.pnpm/file+dependencies+preact+local-pinned+preact-local-pinned.tgz/node_modules/preact" + ls -a node_modules/.pnpm/file+dependencies+preact+local-pinned+preact-local-pinned.tgz/node_modules/preact + + # DEBUGGING + - name: DEBUG + working-directory: benchmarks + run: | + cd dependencies/preact/local-pinned + node -e "console.log(require.resolve('preact'))" # Run benchmark - name: Run benchmark