WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/10/2021 04:52:13 PM (8 months ago)
Author:
desrosj
Message:

Build/Test Tools: Install WordPress Importer plugin when installing the Docker-based local environment.

The WordPress Importer plugin is now downloaded to the tests/phpunit/data/plugins directory when running npm run env:install.

This ensures that the PHPUnit test suite will not fail when the plugin is missing.

This also introduces a new WP_IMPORTER_REVISION variable to the .env file, to control the SVN revision that is checked out.

Props johnbillion.
Fixes #49720.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.github/workflows/phpunit-tests.yml

    r49938 r50285  
    2525  # - Cancels all previous workflow runs for pull requests that have not completed.
    2626  # - Checks out the repository.
    27   # - Checks out the WordPress Importer plugin (needed for the Core PHPUnit tests).
    2827  # - Logs debug information about the runner container.
    2928  # - Installs NodeJS 14.
     
    4746      - name: Checkout repository
    4847        uses: actions/checkout@v2
    49 
    50       - name: Checkout the WordPress Importer plugin
    51         run: svn checkout -r 2387243 https://plugins.svn.wordpress.org/wordpress-importer/trunk/ tests/phpunit/data/plugins/wordpress-importer
    5248
    5349      - name: Log debug information
Note: See TracChangeset for help on using the changeset viewer.