Skip to content

Commit

Permalink
Reorg
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy committed Jul 25, 2024
1 parent e533aff commit 983fc74
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,12 @@ jobs:
working-directory: wpp-research
run: npm ci

- name: Configure WordPress versions
- name: Run tests
run: |
OLD_ARGS=()
OLD_ARGS+=("--mount=./wp-content/mu-plugins:/wordpress/wp-content/mu-plugins")
OLD_ARGS+=(--blueprint=./blueprint-old.json)
echo "::group::Prepare shared blueprint"
cp blueprint.json blueprint-shared.json
jq --argjson step "{ \"step\": \"installTheme\", \"themeZipFile\": { \"resource\": \"wordpress.org/themes\", \"slug\": \"$THEME\" }, \"options\": { \"activate\": true, \"importStarterContent\": false } }" '.steps += [$step]' blueprint-shared.json > blueprint-tmp.json
Expand All @@ -73,8 +71,6 @@ jobs:
mv blueprint-tmp.json blueprint-shared.json
fi;
echo "::endgroup::"
echo "::group::Prepare blueprint for old version"
echo "Old version: $OLD_VERSION"
Expand Down Expand Up @@ -111,11 +107,11 @@ jobs:
npm run --prefix wpp-research research --silent -- benchmark-web-vitals -u http://localhost:9400/ -n 100 -p -v -o csv > before_cwv.csv
npm run --prefix wpp-research research --silent -- benchmark-server-timing -u http://localhost:9400/ -n 100 -p -v -o csv > before_st.csv
echo "::endgroup::"
# Stop Playground server again
npx --yes kill-port 9400
echo "::endgroup::"
NEW_ARGS=()
NEW_ARGS+=("--mount=./wp-content/mu-plugins:/wordpress/wp-content/mu-plugins")
NEW_ARGS+=(--blueprint=./blueprint-new.json)
Expand Down

0 comments on commit 983fc74

Please sign in to comment.