Changeset 50304 for branches/5.3
- Timestamp:
- 02/12/2021 06:11:48 PM (4 years ago)
- Location:
- branches/5.3
- Files:
-
- 1 added
- 11 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/5.3
- Property svn:mergeinfo changed
/trunk merged: 49162,49168-49169,49175,49204,49227-49228,49244,49369,49371,49548,49781-49784,49786,49836,49938,50268,50285,50298
- Property svn:mergeinfo changed
-
branches/5.3/.env
r49366 r50304 46 46 LOCAL_PHP_MEMCACHED=false 47 47 48 # The MySQL version to use. See https://hub.docker.com/_/mysql/ for valid versions. 49 LOCAL_MYSQL=5.7 48 ## 49 # The database software to use. 50 # 51 # Supported values are `mysql` and `mariadb`. 52 ## 53 LOCAL_DB_TYPE=mysql 54 55 ## 56 # The database version to use. 57 # 58 # Defaults to 5.7 with the assumption that LOCAL_DB_TYPE is set to `mysql` above. 59 # 60 # When using `mysql`, see https://hub.docker.com/_/mysql/ for valid versions. 61 # When using `mariadb`, see https://hub.docker.com/_/mariadb for valid versions. 62 ## 63 LOCAL_DB_VERSION=5.7 50 64 51 65 # The debug settings to add to `wp-config.php`. … … 57 71 # The URL to use when running e2e tests. 58 72 WP_BASE_URL=http://localhost:${LOCAL_PORT} 73 74 ## 75 # The revision number of the WordPress Importer plugin to use when running unit tests. 76 # 77 # This should be an SVN revision number from the official plugin repository on wordpress.org. 78 ## 79 WP_IMPORTER_REVISION=2387243 -
branches/5.3/.github/workflows/coding-standards.yml
r49162 r50304 5 5 branches: 6 6 - master 7 # JSHint was introduced in WordPress 3.8. 7 8 # PHPCS checking was introduced in WordPress 5.1. 8 - '5.[1-9]' 9 - '[6-9].*' 9 - '3.[89]' 10 - '[4-9].[0-9]' 11 tags: 12 - '3.[89]*' 13 - '[4-9].[0-9]*' 10 14 pull_request: 11 15 … … 17 21 # Performs the following steps: 18 22 # - Checks out the repository. 19 # - Configures caching for Composer.20 23 # - Sets up PHP. 21 24 # - Logs debug information. 22 # - Installs Composer dependencies (from cache if possible). 25 # - Installs Composer dependencies (use cache if possible). 26 # - Make Composer packages available globally. 23 27 # - Logs PHP_CodeSniffer debug information. 24 28 # - Runs PHPCS on the full codebase with warnings suppressed. … … 28 32 name: PHP coding standards 29 33 runs-on: ubuntu-latest 34 if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }} 35 30 36 steps: 31 37 - name: Checkout repository 32 38 uses: actions/checkout@v2 33 39 34 - name: Get Composer cache directory35 id: composer-cache36 run: echo "::set-output name=dir::$(composer config cache-files-dir)"37 38 - name: Set up Composer caching39 uses: actions/cache@v240 env:41 cache-name: cache-composer-dependencies42 with:43 path: ${{ steps.composer-cache.outputs.dir }}44 key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}45 restore-keys: |46 ${{ runner.os }}-composer-47 48 40 - name: Set up PHP 49 41 uses: shivammathur/setup-php@v2 50 42 with: 51 php-version: '7. 4'43 php-version: '7.3' 52 44 coverage: none 53 45 tools: composer, cs2pr … … 59 51 60 52 - name: Install Composer dependencies 61 run: | 62 composer install --prefer-dist --no-suggest --no-progress --no-ansi --no-interaction 63 echo "vendor/bin" >> $GITHUB_PATH 53 uses: ramsey/composer-install@v1 54 with: 55 composer-options: "--no-progress --no-ansi --no-interaction" 56 57 - name: Make Composer packages available globally 58 run: echo "${PWD}/vendor/bin" >> $GITHUB_PATH 64 59 65 60 - name: Log PHPCS debug information 66 61 run: phpcs -i 67 62 63 - name: Run PHPCBF on all Core files 64 run: phpcbf 65 68 66 - name: Run PHPCS on all Core files 69 run: vendor/bin/phpcs -q -n --report=checkstyle | cs2pr67 run: phpcs -q -n --report=checkstyle | cs2pr 70 68 71 69 - name: Check test suite files for warnings 72 run: vendor/bin/phpcs tests -q --report=checkstyle | cs2pr70 run: phpcs tests -q --report=checkstyle | cs2pr 73 71 74 72 # Runs the JavaScript coding standards checks. 73 # 74 # JSHint violations are not currently reported inline with annotations. 75 75 # 76 76 # Performs the following steps: 77 77 # - Checks out the repository. 78 78 # - Logs debug information about the runner container. 79 # - Installs NodeJS 1 2 (todo: install the version of NPM specified in the `.nvmrc` file to support older branches)79 # - Installs NodeJS 14. 80 80 # - Sets up caching for NPM. 81 81 # - Logs updated debug information. 82 # _ Installs NPM dependencies .82 # _ Installs NPM dependencies using install-changed to hash the `package.json` file. 83 83 # - Run the WordPress JSHint checks. 84 84 # - todo: Configure Slack notifications for failing tests. … … 86 86 name: JavaScript coding standards 87 87 runs-on: ubuntu-latest 88 if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }} 89 env: 90 PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: ${{ true }} 91 88 92 steps: 89 93 - name: Checkout repository … … 100 104 uses: actions/setup-node@v1 101 105 with: 102 node-version: 1 2106 node-version: 14 103 107 104 108 - name: Cache NodeJS modules … … 119 123 120 124 - name: Install Dependencies 121 run: np m ci125 run: npx install-changed --install-command="npm ci" 122 126 123 127 - name: Run JSHint -
branches/5.3/.github/workflows/end-to-end-tests.yml
r49162 r50304 7 7 # The end to end test suite was introduced in WordPress 5.3. 8 8 - '5.[3-9]' 9 - '[6-9].*' 9 - '[6-9].[0-9]' 10 tags: 11 - '5.[3-9]*' 12 - '[6-9].[0-9]*' 10 13 pull_request: 11 14 … … 17 20 # 18 21 # Performs the following steps: 19 # - Cancels all previous workflow runs that have not completed.22 # - Cancels all previous workflow runs for pull requests that have not completed. 20 23 # - Set environment variables. 21 24 # - Checks out the repository. 22 25 # - Logs debug information about the runner container. 23 # - Installs NodeJS 1 2 (todo: install the version of NPM specified in the `.nvmrc` file to support older branches)26 # - Installs NodeJS 14. 24 27 # - Sets up caching for NPM. 25 # _ Installs NPM dependencies .28 # _ Installs NPM dependencies using install-changed to hash the `package.json` file. 26 29 # - Builds WordPress to run from the `build` directory. 27 30 # - Starts the WordPress Docker container. 28 31 # - Logs general debug information. 29 32 # - Logs the running Docker containers. 30 # - Logs Docker debug information (about both the Docker installation within the runner and the WordPress container) 33 # - Logs Docker debug information (about both the Docker installation within the runner and the WordPress container). 31 34 # - Install WordPress within the Docker container. 32 35 # - Run the E2E tests. … … 35 38 name: E2E Tests 36 39 runs-on: ubuntu-latest 40 if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }} 41 37 42 steps: 38 - name: Cancel previous runs of this workflow 43 - name: Cancel previous runs of this workflow (pull requests only) 44 if: ${{ github.event_name == 'pull_request' }} 39 45 uses: styfle/cancel-workflow-action@0.5.0 40 46 with: … … 63 69 uses: actions/setup-node@v1 64 70 with: 65 node-version: 1 271 node-version: 14 66 72 67 73 - name: Cache NodeJS modules … … 77 83 78 84 - name: Install Dependencies 79 run: np m ci85 run: npx install-changed --install-command="npm ci" 80 86 81 87 - name: Build WordPress -
branches/5.3/.github/workflows/javascript-tests.yml
r49162 r50304 5 5 branches: 6 6 - master 7 - '*.*' 7 # JavaScript testing was introduced in WordPress 3.8. 8 - '3.[89]' 9 - '[4-9].[0-9]' 10 tags: 11 - '3.[89]*' 12 - '[4-9].[0-9]*' 8 13 pull_request: 9 14 … … 12 17 # 13 18 # Performs the following steps: 14 # - Cancels all previous workflow runs that have not completed.19 # - Cancels all previous workflow runs for pull requests that have not completed. 15 20 # - Checks out the repository. 16 21 # - Logs debug information about the runner container. 17 # - Installs NodeJS 1 2 (todo: install the version of NPM specified in the `.nvmrc` file to support older branches)22 # - Installs NodeJS 14. 18 23 # - Sets up caching for NPM. 19 24 # - Logs updated debug information. 20 # _ Installs NPM dependencies .25 # _ Installs NPM dependencies using install-changed to hash the `package.json` file. 21 26 # - Run the WordPress QUnit tests. 22 27 # - todo: Configure Slack notifications for failing tests. … … 24 29 name: QUnit Tests 25 30 runs-on: ubuntu-latest 31 if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }} 32 26 33 steps: 27 - name: Cancel previous runs of this workflow 34 - name: Cancel previous runs of this workflow (pull requests only) 35 if: ${{ github.event_name == 'pull_request' }} 28 36 uses: styfle/cancel-workflow-action@0.5.0 29 37 with: … … 43 51 uses: actions/setup-node@v1 44 52 with: 45 node-version: 1 253 node-version: 14 46 54 47 55 - name: Cache NodeJS modules … … 62 70 63 71 - name: Install Dependencies 64 run: np m ci72 run: npx install-changed --install-command="npm ci" 65 73 66 74 - name: Run QUnit tests -
branches/5.3/.github/workflows/php-compatibility.yml
r49162 r50304 7 7 # The PHP compatibility testing was introduced in WordPress 5.5. 8 8 - '5.[5-9]' 9 - '[6-9].*' 9 - '[6-9].[0-9]' 10 tags: 11 - '5.[5-9]*' 12 - '[6-9].[0-9]*' 10 13 pull_request: 11 14 … … 18 21 # Performs the following steps: 19 22 # - Checks out the repository. 20 # - Configures caching for Composer.21 23 # - Sets up PHP. 22 24 # - Logs debug information about the runner container. 23 # - Installs Composer dependencies (from cache if possible). 25 # - Installs Composer dependencies (use cache if possible). 26 # - Make Composer packages available globally. 24 27 # - Logs PHP_CodeSniffer debug information. 25 28 # - Runs the PHP compatibility tests. … … 28 31 name: Check PHP compatibility 29 32 runs-on: ubuntu-latest 33 if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }} 30 34 31 35 steps: 32 36 - name: Checkout repository 33 37 uses: actions/checkout@v2 34 35 - name: Get Composer cache directory36 id: composer-cache37 run: echo "::set-output name=dir::$(composer config cache-files-dir)"38 39 - name: Set up Composer caching40 uses: actions/cache@v241 env:42 cache-name: cache-composer-dependencies43 with:44 path: ${{ steps.composer-cache.outputs.dir }}45 key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}46 restore-keys: |47 ${{ runner.os }}-composer-48 38 49 39 - name: Set up PHP … … 60 50 61 51 - name: Install Composer dependencies 62 run: | 63 composer install --prefer-dist --no-suggest --no-progress --no-ansi --no-interaction 64 echo "vendor/bin" >> $GITHUB_PATH 52 uses: ramsey/composer-install@v1 53 with: 54 composer-options: "--no-progress --no-ansi --no-interaction" 55 56 - name: Make Composer packages available globally 57 run: echo "${PWD}/vendor/bin" >> $GITHUB_PATH 58 59 - name: Log PHPCS debug information 60 run: phpcs -i 65 61 66 62 - name: Run PHP compatibility tests 67 run: vendor/bin/phpcs --standard=phpcompat.xml.dist -q --report=checkstyle | cs2pr63 run: phpcs --standard=phpcompat.xml.dist -q --report=checkstyle | cs2pr -
branches/5.3/.github/workflows/phpunit-tests.yml
r49162 r50304 5 5 branches: 6 6 - master 7 - '*.*' 7 - '3.[7-9]' 8 - '[4-9].[0-9]' 9 tags: 10 - '3.[7-9]*' 11 - '[4-9].[0-9]*' 8 12 pull_request: 9 13 # Once weekly On Sundays at 00:00 UTC. … … 23 27 # 24 28 # Performs the following steps: 25 # - Cancels all previous workflow runs that have not completed.29 # - Cancels all previous workflow runs for pull requests that have not completed. 26 30 # - Checks out the repository. 27 # - Checks out the WordPress Importer plugin (needed for the Core PHPUnit tests).28 31 # - Logs debug information about the runner container. 29 # - Installs NodeJS 1 2 (todo: install the version of NPM specified in the `.nvmrc` file to support older branches)32 # - Installs NodeJS 14. 30 33 # - Sets up caching for NPM. 31 # _ Installs NPM dependencies .34 # _ Installs NPM dependencies using install-changed to hash the `package.json` file. 32 35 # - Builds WordPress to run from the `build` directory. 33 # - Creates a ZIP file of compiled WordPress 36 # - Creates a ZIP file of compiled WordPress. 34 37 # - Uploads ZIP file as an artifact. 35 38 setup-wordpress: 36 39 name: Setup WordPress 37 40 runs-on: ubuntu-latest 41 if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }} 38 42 39 43 steps: 40 - name: Cancel previous runs of this workflow 44 - name: Cancel previous runs of this workflow (pull requests only) 45 if: ${{ github.event_name == 'pull_request' }} 41 46 uses: styfle/cancel-workflow-action@0.5.0 42 47 with: … … 46 51 uses: actions/checkout@v2 47 52 48 - name: Checkout the WordPress Importer plugin49 run: svn checkout -r 2387243 https://plugins.svn.wordpress.org/wordpress-importer/trunk/ tests/phpunit/data/plugins/wordpress-importer50 51 53 - name: Log debug information 52 54 run: | 55 echo "$GITHUB_REF" 56 echo "$GITHUB_EVENT_NAME" 53 57 npm --version 54 58 node --version … … 63 67 uses: actions/setup-node@v1 64 68 with: 65 node-version: 1 269 node-version: 14 66 70 67 71 - name: Cache NodeJS modules … … 77 81 78 82 - name: Install Dependencies 79 run: np m ci83 run: npx install-changed --install-command="npm ci" 80 84 81 85 - name: Build WordPress … … 86 90 with: 87 91 filename: built-wp-${{ github.sha }}.zip 88 exclusions: ' /*node_modules/*'92 exclusions: '*.git* /*node_modules/* packagehash.txt' 89 93 90 94 - name: Upload build artifact … … 102 106 # - Downloads the built WordPress artifact from the previous job. 103 107 # - Unzips the artifact. 104 # - Installs NodeJS 1 2 (todo: install the version of NPM specified in the `nvmrc` file to support older branches)108 # - Installs NodeJS 14. 105 109 # - Sets up caching for NPM. 106 # _ Installs NPM dependencies .110 # _ Installs NPM dependencies using install-changed to hash the `package.json` file. 107 111 # - Configures caching for Composer. 108 # _ Installs Composer dependencies (if desired) 109 # - Logs Docker debug information (about both the Docker installation within the runner) 112 # _ Installs Composer dependencies (if desired). 113 # - Logs Docker debug information (about both the Docker installation within the runner). 110 114 # - Starts the WordPress Docker container. 111 115 # - Starts the memcached server after the Docker network has been created (if desired). … … 113 117 # - Logs debug general information. 114 118 # - Logs the running Docker containers. 115 # - Logs Docker debug information (about both the Docker installation within the runner and the WordPress container)119 # - Logs debug information about what's installed within the WordPress Docker containers. 116 120 # - Install WordPress within the Docker container. 117 121 # - Run the PHPUnit tests. 118 # - Reports test results to the Distributed Hosting Tests. 122 # - Checks out the WordPress Test reporter repository. 123 # - Reconnect the directory to the Git repository. 124 # - Submit the test results to the WordPress.org host test results. 119 125 # - todo: Configure Slack notifications for failing tests. 120 126 test-php: 121 name: ${{ matrix.php _versions}} on ${{ matrix.os }}127 name: ${{ matrix.php }}${{ matrix.memcached && ' with memcached' || '' }} on ${{ matrix.os }} 122 128 needs: setup-wordpress 123 129 runs-on: ${{ matrix.os }} 124 130 strategy: 125 131 matrix: 126 php _versions: [ '8.0', 7.4, '7.4 with memcached', 7.3, 7.2, 7.1, '7.0', 5.6.20]132 php: [ '7.4', '7.3', '7.2', '7.1', '7.0', '5.6' ] 127 133 os: [ ubuntu-latest ] 134 memcached: [ false ] 135 include: 136 # Include job for PHP 7.4 with memcached. 137 - php: '7.4' 138 os: ubuntu-latest 139 memcached: true 140 # Report the results of the PHP 7.4 without memcached job. 141 - php: '7.4' 142 os: ubuntu-latest 143 memcached: false 144 report: true 128 145 env: 129 LOCAL_PHP: ${{ matrix.php_versions }}-fpm 146 LOCAL_PHP: ${{ matrix.php }}-fpm 147 LOCAL_PHP_MEMCACHED: ${{ matrix.memcached }} 130 148 131 149 steps: … … 135 153 echo "PHP_FPM_GID=$(id -g)" >> $GITHUB_ENV 136 154 137 - name: Configure memcached138 if: ${{ contains( matrix.php_versions, 'memcached' ) }}139 run: |140 echo "LOCAL_PHP=$(echo ${{ matrix.php_versions }} | cut -c1-3)-fpm" >> $GITHUB_ENV141 echo "LOCAL_PHP_MEMCACHED=true" >> $GITHUB_ENV142 143 155 - name: Download the built WordPress artifact 144 156 uses: actions/download-artifact@v2 … … 152 164 uses: actions/setup-node@v1 153 165 with: 154 node-version: 1 2166 node-version: 14 155 167 156 168 - name: Use cached Node modules … … 166 178 167 179 - name: Install Dependencies 168 run: npm ci 169 170 - name: Get composer cache directory 171 id: composer-cache 172 if: ${{ env.COMPOSER_INSTALL == true || env.LOCAL_PHP == '8.0-fpm' }} 173 run: echo "::set-output name=dir::$(composer config cache-files-dir)" 180 run: npx install-changed --install-command="npm ci" 174 181 175 182 - name: Cache Composer dependencies 176 if: ${{ env.COMPOSER_INSTALL == true || env.LOCAL_PHP == '8.0-fpm'}}183 if: ${{ env.COMPOSER_INSTALL == true }} 177 184 uses: actions/cache@v2 178 185 env: … … 180 187 with: 181 188 path: ${{ steps.composer-cache.outputs.dir }} 182 key: ${{ runner.os }}- composer-${{ hashFiles('**/composer.lock') }}189 key: ${{ runner.os }}-php-${{ matrix.php }}-composer-${{ hashFiles('**/composer.lock') }} 183 190 restore-keys: | 184 ${{ runner.os }}- composer-191 ${{ runner.os }}-php-${{ matrix.php }}-composer- 185 192 186 193 - name: Install Composer dependencies 187 if: ${{ env.COMPOSER_INSTALL == true || env.LOCAL_PHP == '8.0-fpm'}}194 if: ${{ env.COMPOSER_INSTALL == true }} 188 195 run: | 189 196 docker-compose run --rm php composer --version 190 191 # The PHPUnit 7.x phar is not compatible with PHP 8 and won't be updated, 192 # as PHPUnit 7 is no longer supported. The Composer-installed PHPUnit should be 193 # used for PHP 8 testing instead. 194 if [ ${{ env.LOCAL_PHP }} == '8.0-fpm' ]; then 195 docker-compose run --rm php composer install --ignore-platform-reqs 196 echo "PHPUNIT_SCRIPT=php-composer" >> $GITHUB_ENV 197 else 198 docker-compose run --rm php composer install 199 fi 197 docker-compose run --rm php composer install 200 198 201 199 - name: Docker debug information … … 210 208 # The memcached server needs to start after the Docker network has been set up with `npm run env:start`. 211 209 - name: Start the Memcached server. 212 if: ${{ contains( matrix.php_versions, 'memcached' )}}210 if: ${{ matrix.memcached }} 213 211 run: | 214 212 cp tests/phpunit/includes/object-cache.php build/wp-content/object-cache.php … … 228 226 - name: WordPress Docker container debug information 229 227 run: | 230 docker -v231 docker-compose -v232 228 docker-compose run --rm mysql mysql --version 233 229 docker-compose run --rm php php --version … … 248 244 run: npm run test:${{ env.PHPUNIT_SCRIPT }} -- --verbose -c tests/phpunit/multisite.xml 249 245 250 - name: Run m utlisite file tests246 - name: Run ms-files tests as a multisite install 251 247 run: npm run test:${{ env.PHPUNIT_SCRIPT }} -- --verbose -c tests/phpunit/multisite.xml --group ms-files 252 248 … … 257 253 run: npm run test:${{ env.PHPUNIT_SCRIPT }} -- --verbose -c phpunit.xml.dist --group restapi-jsclient 258 254 259 # Xdebug supports PHP 8 only from version 3.0, which is not released yet.260 # Once Xdebug 3.0 is released and included in the Docker image, the IF condition should be removed.261 255 # __fakegroup__ is excluded to force PHPUnit to ignore the <exclude> settings in phpunit.xml.dist. 262 256 - name: Run (xDebug) tests 263 if: ${{ env.LOCAL_PHP != '8.0-fpm' }}264 257 run: LOCAL_PHP_XDEBUG=true npm run test:php -- -v --group xdebug --exclude-group __fakegroup__ 265 258 266 - name: WordPress Test Reporter267 if: ${{ matrix.php_versions == '7.4'}}259 - name: Checkout the WordPress Test Reporter 260 if: ${{ github.repository == 'WordPress/wordpress-develop' && github.ref == 'refs/heads/master' && matrix.report }} 268 261 uses: actions/checkout@v2 269 262 with: 270 263 repository: 'WordPress/phpunit-test-runner' 271 264 path: 'test-runner' 272 # TODO: Configure hidden keys to successfully report test results. 273 # run: docker-compose run --rm -e WPT_REPORT_API_KEY -e WPT_PREPARE_DIR=/var/www -e WPT_TEST_DIR=/var/www php php test-runner/report.php 265 266 - name: Set up the Git repository 267 if: ${{ github.repository == 'WordPress/wordpress-develop' && github.ref == 'refs/heads/master' && matrix.report }} 268 run: | 269 git init 270 git remote add origin https://github.com/WordPress/wordpress-develop.git 271 git fetch 272 git reset origin/master 273 274 - name: Submit test results to the WordPress.org host test results 275 if: ${{ github.repository == 'WordPress/wordpress-develop' && github.ref == 'refs/heads/master' && matrix.report }} 276 env: 277 WPT_REPORT_API_KEY: "${{ secrets.WPT_REPORT_API_KEY }}" 278 run: docker-compose run --rm -e WPT_REPORT_API_KEY -e WPT_PREPARE_DIR=/var/www -e WPT_TEST_DIR=/var/www php php test-runner/report.php -
branches/5.3/.github/workflows/verify-npm-on-windows.yml
r49162 r50304 5 5 branches: 6 6 - master 7 - '*.*' 7 - '3.[7-9]' 8 - '[4-9].[0-9]' 8 9 pull_request: 10 11 env: 12 PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: ${{ true }} 9 13 10 14 jobs: … … 12 16 # 13 17 # Performs the following steps: 14 # - Cancels all previous workflow runs that have not completed.18 # - Cancels all previous workflow runs for pull requests that have not completed. 15 19 # - Checks out the repository. 16 20 # - Logs debug information about the runner container. 17 # - Installs NodeJS 1 2 (todo: install the version of NPM specified in the `.nvmrc` file to support older branches)21 # - Installs NodeJS 14. 18 22 # - Sets up caching for NPM. 19 # _ Installs NPM dependencies .23 # _ Installs NPM dependencies using install-changed to hash the `package.json` file. 20 24 # - Builds WordPress to run from the `build` directory. 21 25 test-npm: 22 26 name: Tests NPM on Windows 23 27 runs-on: windows-latest 28 if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }} 29 24 30 steps: 25 - name: Cancel previous runs of this workflow 31 - name: Cancel previous runs of this workflow (pull requests only) 32 if: ${{ github.event_name == 'pull_request' }} 26 33 uses: styfle/cancel-workflow-action@0.5.0 27 34 with: … … 42 49 uses: actions/setup-node@v1 43 50 with: 44 node-version: 1 251 node-version: 14 45 52 46 53 - name: Get NPM cache directory … … 59 66 60 67 - name: Install Dependencies 61 run: np m ci68 run: npx install-changed --install-command="npm ci" 62 69 63 70 - name: Build WordPress -
branches/5.3/.github/workflows/welcome-new-contributors.yml
r49162 r50304 2 2 3 3 on: 4 pull_request :4 pull_request_target: 5 5 types: [ opened ] 6 6 7 7 jobs: 8 # Comments on a pull request when the author is a new contributor. 8 9 post-welcome-message: 9 10 runs-on: ubuntu-latest 11 if: ${{ github.repository == 'WordPress/wordpress-develop' }} 10 12 11 13 steps: … … 20 22 21 23 22 It looks like this is your first pull request , so here are a few things to be aware of that may help you out.24 It looks like this is your first pull request to `wordpress-develop`. Here are a few things to be aware of that may help you out! 23 25 24 26 … … 26 28 27 29 28 **Pull requests are never merged on GitHub.** The WordPress codebase continues to be managed through the SVN repository that this one mirrors. But please feel free to usepull requests to work on any contribution you are making.30 **Pull requests are never merged on GitHub.** The WordPress codebase continues to be managed through the SVN repository that this GitHub repository mirrors. Please feel free to open pull requests to work on any contribution you are making. 29 31 30 32 … … 32 34 33 35 34 Including tests in your pull request is one way to help your patch be considered faster. To learn about WordPress' test suites, visit the [Automated Testing](https://make.wordpress.org/core/handbook/testing/automated-testing/) page in the handbook.36 **Please include automated tests.** Including tests in your pull request is one way to help your patch be considered faster. To learn about WordPress' test suites, visit the [Automated Testing](https://make.wordpress.org/core/handbook/testing/automated-testing/) page in the handbook. 35 37 36 38 … … 53 55 54 56 55 Please remember that the WordPress project is largely maintained by volunteers56 57 58 57 Thank you, 59 58 -
branches/5.3/docker-compose.yml
r49366 r50304 54 54 ## 55 55 mysql: 56 image: mysql:${LOCAL_MYSQL-latest}56 image: ${LOCAL_DB_TYPE-mysql}:${LOCAL_DB_VERSION-latest} 57 57 58 58 networks: -
branches/5.3/tools/local-env/scripts/install.js
r49366 r50304 19 19 // Move wp-config.php to the base directory, so it doesn't get mixed up in the src or build directories. 20 20 renameSync( 'src/wp-config.php', 'wp-config.php' ); 21 22 install_wp_importer(); 21 23 22 24 // Read in wp-tests-config-sample.php, edit it to work with our config, then write it to wp-tests-config.php. … … 45 47 execSync( `docker-compose run --rm cli ${cmd}`, { stdio: 'inherit' } ); 46 48 } 49 50 /** 51 * Downloads the WordPress Importer plugin for use in tests. 52 */ 53 function install_wp_importer() { 54 const test_plugin_directory = 'tests/phpunit/data/plugins/wordpress-importer'; 55 56 execSync( `docker-compose exec -T php rm -rf ${test_plugin_directory} && svn checkout -r ${process.env.WP_IMPORTER_REVISION} https://plugins.svn.wordpress.org/wordpress-importer/trunk/ ${test_plugin_directory}`, { stdio: 'inherit' } ); 57 }
Note: See TracChangeset
for help on using the changeset viewer.