Make WordPress Core


Ignore:
Timestamp:
11/29/2023 11:52:36 AM (18 months ago)
Author:
swissspidy
Message:

Test: Run database upgrades between performance test steps.

Prevents pending upgrades from blocking tests when checking out previous builds.

Props mukesh27.
See #59647.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.github/workflows/performance.yml

    r57085 r57143  
    7474  # - Install npm dependencies.
    7575  # - Build WordPress.
     76  # - Run any database upgrades.
    7677  # - Run performance tests (previous/target commit).
    7778  # - Print target performance tests results.
     
    7980  # - Install npm dependencies.
    8081  # - Set the environment to the baseline version.
     82  # - Run any database upgrades.
    8183  # - Run baseline performance tests.
    8284  # - Print baseline performance tests results.
     
    195197        run: npm run build
    196198
     199      - name: Run any database upgrades
     200        run: npm run env:cli -- core update-db --path=/var/www/${{ env.LOCAL_DIR }}
     201
    197202      - name: Run target performance tests (base/previous commit)
    198203        env:
     
    215220          npm run env:cli -- core update --version=${{ env.BASE_TAG }} --force --path=/var/www/${{ env.LOCAL_DIR }}
    216221          npm run env:cli -- core version --path=/var/www/${{ env.LOCAL_DIR }}
     222
     223      - name: Run any database upgrades
     224        run: npm run env:cli -- core update-db --path=/var/www/${{ env.LOCAL_DIR }}
    217225
    218226      - name: Run baseline performance tests
Note: See TracChangeset for help on using the changeset viewer.