Changeset 50296 for branches/5.6
- Timestamp:
- 02/12/2021 02:53:59 PM (4 years ago)
- Location:
- branches/5.6
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.6
- Property svn:mergeinfo changed
/trunk merged: 49781-49784,49786,49836,49938,50268,50285
- Property svn:mergeinfo changed
-
branches/5.6/.env
r49362 r50296 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`. … … 58 72 # The URL to use when running e2e tests. 59 73 WP_BASE_URL=http://localhost:${LOCAL_PORT} 74 75 ## 76 # The revision number of the WordPress Importer plugin to use when running unit tests. 77 # 78 # This should be an SVN revision number from the official plugin repository on wordpress.org. 79 ## 80 WP_IMPORTER_REVISION=2387243 -
branches/5.6/.github/workflows/coding-standards.yml
r49369 r50296 17 17 # Performs the following steps: 18 18 # - Checks out the repository. 19 # - Configures caching for Composer.20 19 # - Sets up PHP. 21 20 # - Logs debug information. 22 # - Installs Composer dependencies (from cache if possible). 21 # - Installs Composer dependencies (use cache if possible). 22 # - Make Composer packages available globally. 23 23 # - Logs PHP_CodeSniffer debug information. 24 24 # - Runs PHPCS on the full codebase with warnings suppressed. … … 28 28 name: PHP coding standards 29 29 runs-on: ubuntu-latest 30 if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }} 31 30 32 steps: 31 33 - name: Checkout repository 32 34 uses: actions/checkout@v2 33 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 35 48 36 - name: Set up PHP … … 59 47 60 48 - name: Install Composer dependencies 61 run: | 62 composer install --prefer-dist --no-suggest --no-progress --no-ansi --no-interaction 63 echo "${PWD}/vendor/bin" >> $GITHUB_PATH 49 uses: ramsey/composer-install@v1 50 with: 51 composer-options: "--no-progress --no-ansi --no-interaction" 52 53 - name: Make Composer packages available globally 54 run: echo "${PWD}/vendor/bin" >> $GITHUB_PATH 64 55 65 56 - name: Log PHPCS debug information … … 74 65 # Runs the JavaScript coding standards checks. 75 66 # 67 # JSHint violations are not currently reported inline with annotations. 68 # 76 69 # Performs the following steps: 77 70 # - Checks out the repository. 78 71 # - 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)72 # - Installs NodeJS 14. 80 73 # - Sets up caching for NPM. 81 74 # - Logs updated debug information. … … 86 79 name: JavaScript coding standards 87 80 runs-on: ubuntu-latest 81 if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }} 88 82 env: 89 83 PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: ${{ true }} 84 90 85 steps: 91 86 - name: Checkout repository … … 102 97 uses: actions/setup-node@v1 103 98 with: 104 node-version: 1 299 node-version: 14 105 100 106 101 - name: Cache NodeJS modules -
branches/5.6/.github/workflows/javascript-tests.yml
r49371 r50296 15 15 # - Checks out the repository. 16 16 # - 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).17 # - Installs NodeJS 14. 18 18 # - Sets up caching for NPM. 19 19 # - Logs updated debug information. … … 24 24 name: QUnit Tests 25 25 runs-on: ubuntu-latest 26 if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }} 27 26 28 steps: 27 29 - name: Cancel previous runs of this workflow (pull requests only) … … 44 46 uses: actions/setup-node@v1 45 47 with: 46 node-version: 1 248 node-version: 14 47 49 48 50 - name: Cache NodeJS modules -
branches/5.6/.github/workflows/php-compatibility.yml
r49175 r50296 18 18 # Performs the following steps: 19 19 # - Checks out the repository. 20 # - Configures caching for Composer.21 20 # - Sets up PHP. 22 21 # - Logs debug information about the runner container. 23 # - Installs Composer dependencies (from cache if possible). 22 # - Installs Composer dependencies (use cache if possible). 23 # - Make Composer packages available globally. 24 24 # - Logs PHP_CodeSniffer debug information. 25 25 # - Runs the PHP compatibility tests. … … 28 28 name: Check PHP compatibility 29 29 runs-on: ubuntu-latest 30 if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }} 30 31 31 32 steps: 32 33 - name: Checkout repository 33 34 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 35 49 36 - name: Set up PHP … … 60 47 61 48 - name: Install Composer dependencies 62 run: | 63 composer install --prefer-dist --no-suggest --no-progress --no-ansi --no-interaction 64 echo "${PWD}/vendor/bin" >> $GITHUB_PATH 49 uses: ramsey/composer-install@v1 50 with: 51 composer-options: "--no-progress --no-ansi --no-interaction" 52 53 - name: Make Composer packages available globally 54 run: echo "${PWD}/vendor/bin" >> $GITHUB_PATH 65 55 66 56 - name: Log PHPCS debug information -
branches/5.6/.github/workflows/phpunit-tests.yml
r49371 r50296 25 25 # - Cancels all previous workflow runs for pull requests that have not completed. 26 26 # - Checks out the repository. 27 # - Checks out the WordPress Importer plugin (needed for the Core PHPUnit tests).28 27 # - 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).28 # - Installs NodeJS 14. 30 29 # - Sets up caching for NPM. 31 30 # _ Installs NPM dependencies using install-changed to hash the `package.json` file. … … 36 35 name: Setup WordPress 37 36 runs-on: ubuntu-latest 37 if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }} 38 38 39 39 steps: … … 46 46 - name: Checkout repository 47 47 uses: actions/checkout@v2 48 49 - name: Checkout the WordPress Importer plugin50 run: svn checkout -r 2387243 https://plugins.svn.wordpress.org/wordpress-importer/trunk/ tests/phpunit/data/plugins/wordpress-importer51 48 52 49 - name: Log debug information … … 66 63 uses: actions/setup-node@v1 67 64 with: 68 node-version: 1 265 node-version: 14 69 66 70 67 - name: Cache NodeJS modules … … 105 102 # - Downloads the built WordPress artifact from the previous job. 106 103 # - Unzips the artifact. 107 # - Installs NodeJS 1 2 (todo: install the version of NPM specified in the `nvmrc` file to support older branches)104 # - Installs NodeJS 14. 108 105 # - Sets up caching for NPM. 109 106 # _ Installs NPM dependencies using install-changed to hash the `package.json` file. … … 119 116 # - Install WordPress within the Docker container. 120 117 # - Run the PHPUnit tests. 121 # - Reports test results to the Distributed Hosting Tests. 118 # - Checks out the WordPress Test reporter repository. 119 # - Reconnect the directory to the Git repository. 120 # - Submit the test results to the WordPress.org host test results. 122 121 # - todo: Configure Slack notifications for failing tests. 123 122 test-php: … … 161 160 uses: actions/setup-node@v1 162 161 with: 163 node-version: 1 2162 node-version: 14 164 163 165 164 - name: Use cached Node modules … … 189 188 with: 190 189 path: ${{ steps.composer-cache.outputs.dir }} 191 key: ${{ runner.os }}- composer-${{ hashFiles('**/composer.lock') }}190 key: ${{ runner.os }}-php-${{ matrix.php }}-composer-${{ hashFiles('**/composer.lock') }} 192 191 restore-keys: | 193 ${{ runner.os }}- composer-192 ${{ runner.os }}-php-${{ matrix.php }}-composer- 194 193 195 194 - name: Install Composer dependencies … … 271 270 run: LOCAL_PHP_XDEBUG=true npm run test:php -- -v --group xdebug --exclude-group __fakegroup__ 272 271 273 - name: WordPress Test Reporter274 if: ${{ matrix.report }}272 - name: Checkout the WordPress Test Reporter 273 if: ${{ github.repository == 'WordPress/wordpress-develop' && github.ref == 'refs/heads/master' && matrix.report }} 275 274 uses: actions/checkout@v2 276 275 with: 277 276 repository: 'WordPress/phpunit-test-runner' 278 277 path: 'test-runner' 279 # TODO: Configure hidden keys to successfully report test results. 280 # 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 278 279 - name: Set up the Git repository 280 if: ${{ github.repository == 'WordPress/wordpress-develop' && github.ref == 'refs/heads/master' && matrix.report }} 281 run: | 282 git init 283 git remote add origin https://github.com/WordPress/wordpress-develop.git 284 git fetch 285 git reset origin/master 286 287 - name: Submit test results to the WordPress.org host test results 288 if: ${{ github.repository == 'WordPress/wordpress-develop' && github.ref == 'refs/heads/master' && matrix.report }} 289 env: 290 WPT_REPORT_API_KEY: "${{ secrets.WPT_REPORT_API_KEY }}" 291 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.6/.github/workflows/verify-npm-on-windows.yml
r50198 r50296 18 18 # - Checks out the repository. 19 19 # - Logs debug information about the runner container. 20 # - Installs NodeJS 14 (todo: install the version of NPM specified in the `.nvmrc` file to support older branches).20 # - Installs NodeJS 14. 21 21 # - Sets up caching for NPM. 22 22 # _ Installs NPM dependencies using install-changed to hash the `package.json` file. … … 25 25 name: Tests NPM on Windows 26 26 runs-on: windows-latest 27 if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }} 28 27 29 steps: 28 30 - name: Cancel previous runs of this workflow (pull requests only) -
branches/5.6/.github/workflows/welcome-new-contributors.yml
r49548 r50296 9 9 post-welcome-message: 10 10 runs-on: ubuntu-latest 11 if: ${{ github.repository == 'WordPress/wordpress-develop' }} 11 12 12 13 steps: -
branches/5.6/docker-compose.yml
r49362 r50296 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.6/tools/local-env/scripts/install.js
r49362 r50296 20 20 // Move wp-config.php to the base directory, so it doesn't get mixed up in the src or build directories. 21 21 renameSync( 'src/wp-config.php', 'wp-config.php' ); 22 23 install_wp_importer(); 22 24 23 25 // Read in wp-tests-config-sample.php, edit it to work with our config, then write it to wp-tests-config.php. … … 46 48 execSync( `docker-compose run --rm cli ${cmd}`, { stdio: 'inherit' } ); 47 49 } 50 51 /** 52 * Downloads the WordPress Importer plugin for use in tests. 53 */ 54 function install_wp_importer() { 55 const test_plugin_directory = 'tests/phpunit/data/plugins/wordpress-importer'; 56 57 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' } ); 58 }
Note: See TracChangeset
for help on using the changeset viewer.