Skip to content

Commit

Permalink
Install testing themes in the correct wp-env context
Browse files Browse the repository at this point in the history
  • Loading branch information
WunderBart committed Mar 15, 2023
1 parent ff26614 commit 0c0dc01
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/performance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,6 @@ jobs:
run: |
npm ci
- name: Install specific versions of the themes used in tests
run: |
npm run wp-env start
npm run wp-env -- run tests-cli "wp theme update twentytwentyone --version=1.7"
npm run wp-env -- run tests-cli "wp theme update twentytwentythree --version=1.0"
npm run wp-env stop
- name: Compare performance with trunk
if: github.event_name == 'pull_request'
run: ./bin/plugin/cli.js perf $GITHUB_SHA trunk --tests-branch $GITHUB_SHA
Expand Down
6 changes: 5 additions & 1 deletion bin/plugin/utils/.wp-env.performance.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{
"core": "WordPress/WordPress",
"plugins": [ "./plugin" ],
"themes": [ "../../tests/test/emptytheme" ],
"themes": [
"../../tests/test/emptytheme",
"https://downloads.wordpress.org/theme/twentytwentyone.1.7.zip",
"https://downloads.wordpress.org/theme/twentytwentythree.1.0.zip"
],
"env": {
"tests": {
"mappings": {
Expand Down

0 comments on commit 0c0dc01

Please sign in to comment.