mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Test: Run database upgrades between performance test steps.
Prevents pending upgrades from blocking tests when checking out previous builds. Props mukesh27. See #59647. git-svn-id: https://develop.svn.wordpress.org/trunk@57143 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
96339bda23
commit
fdec267246
8
.github/workflows/performance.yml
vendored
8
.github/workflows/performance.yml
vendored
@ -73,11 +73,13 @@ jobs:
|
||||
# - Check out target commit (target branch or previous commit).
|
||||
# - Install npm dependencies.
|
||||
# - Build WordPress.
|
||||
# - Run any database upgrades.
|
||||
# - Run performance tests (previous/target commit).
|
||||
# - Print target performance tests results.
|
||||
# - Reset to original commit.
|
||||
# - Install npm dependencies.
|
||||
# - Set the environment to the baseline version.
|
||||
# - Run any database upgrades.
|
||||
# - Run baseline performance tests.
|
||||
# - Print baseline performance tests results.
|
||||
# - Compare results with base.
|
||||
@ -194,6 +196,9 @@ jobs:
|
||||
- name: Build WordPress
|
||||
run: npm run build
|
||||
|
||||
- name: Run any database upgrades
|
||||
run: npm run env:cli -- core update-db --path=/var/www/${{ env.LOCAL_DIR }}
|
||||
|
||||
- name: Run target performance tests (base/previous commit)
|
||||
env:
|
||||
TEST_RESULTS_PREFIX: before
|
||||
@ -215,6 +220,9 @@ jobs:
|
||||
npm run env:cli -- core update --version=${{ env.BASE_TAG }} --force --path=/var/www/${{ env.LOCAL_DIR }}
|
||||
npm run env:cli -- core version --path=/var/www/${{ env.LOCAL_DIR }}
|
||||
|
||||
- name: Run any database upgrades
|
||||
run: npm run env:cli -- core update-db --path=/var/www/${{ env.LOCAL_DIR }}
|
||||
|
||||
- name: Run baseline performance tests
|
||||
env:
|
||||
TEST_RESULTS_PREFIX: base
|
||||
|
||||
Loading…
Reference in New Issue
Block a user