-
Notifications
You must be signed in to change notification settings - Fork 210
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fixes #3478 Enable installation through composer v2 (PR #3928) * update woocommerce from wpackagist * update woocommerce paths * use composer v2 in GH actions * Re-add change to remove disable preload fonts when CPCSS is enabled (PR #3927) * remove callback disabling preload fonts * remove associated tests * Stop preload while prewarmup is running (PR #3925) * start automatic preload just after prewarmup finishes its work * Block manual preload till finishing prewarmup * check the RUCSS option enabled along with allow_optimization * fix old tests * [WIP] stop preload with enabling RUCSS * migrate maybe_cancel_preload to RUCSS admin subscriber * fix old tests * remove charset=UTF-8 (PR #3946) * remove charset=UTF-8 * remove charset=UTF-8 from delete * Add unit tests code coverage (PR #3922) * add code coverage command * update incorrect annotations * add cove coverage action * enable xdebug for coverage * Fix failing tests related to adding prewarmup functionality (PR #3949) * Guard our code by checking if table is exists before updating prewarmup * With switch_theme only start scanner when RUCSS is enabled * change trigger event to push * Fixes RUCSS tests: update time to prevent tests failures (PR #3973) * Fixes #3600 add wpstage to staging servers list (PR #3948) * add wpstage to staging servers * remove image optimization when WP_ROCKET_WHITE_LABEL_ACCOUNT (PR #3956) * remove image optimization menu when WP_ROCKET_WHITE_LABEL_ACCOUNT is used * Add Hubspot iframe inline JS exclusion from combine JS (PR #3943) * Fixes #3945 Display warning when WP Meteor is enabled with WP Rocket delay JS (PR #3974) * add new add_plugins_incompatibility() method * add options class to settings class dependencies * updating existing tests * add add_plugins_incompatibility() test file * add unit & integration tests * Fixes #3924 Remove unnecessary more info link in RUCSS pre-warmup copy (PR #3981) * Compatibility with Impreza theme (PR #3972) * Add Impreza inline script pattern to exclude * Add Fixtures Co-authored-by: Rémy Perona <remperona@gmail.com> * Update delay JS script (PR #3971) * update delay JS script * update delay JS fixture * add touchchancel and touchforcechange events * update fixture with new events * Fixes #2876 Remove beacon button when white label is enabled (PR #3965) * remove beacon btn if white label is true * remove ask support button too * Add additional delay JS exclusions (PR #3975) * Add additional exclusions from delay JS * Update fixtures * update plugin version to 3.9.0.1 * update operator in version_compare Co-authored-by: Ahmed Saed <eng.ahmeds3ed@gmail.com> Co-authored-by: mostafa-hisham <mostafa.hisham.mahmoud@gmail.com> Co-authored-by: Natalia Drause <60236665+NataliaDrause@users.noreply.github.com> Co-authored-by: Jonathan Buttigieg <jonathan@wp-media.me>
- Loading branch information
1 parent
0e3a5d1
commit 48f5466
Showing
79 changed files
with
707 additions
and
332 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
name: PHPUnit Code Coverage | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
|
||
jobs: | ||
run: | ||
runs-on: ${{ matrix.operating-system }} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
operating-system: [ubuntu-latest] | ||
php-versions: ['7.4'] | ||
wp-versions: ['latest'] | ||
|
||
name: Code Coverage. | ||
|
||
env: | ||
WP_TESTS_DIR: "/tmp/tests/phpunit" | ||
WP_CORE_DIR: "/tmp/wordpress-develop" | ||
ROCKETCDN_EMAIL: ${{ secrets.ROCKETCDN_EMAIL }} | ||
ROCKETCDN_PWD: ${{ secrets.ROCKETCDN_PWD }} | ||
ROCKETCDN_TOKEN: ${{ secrets.ROCKETCDN_TOKEN }} | ||
ROCKETCDN_URL: ${{ secrets.ROCKETCDN_URL }} | ||
ROCKETCDN_WEBSITE_ID: ${{ secrets.ROCKETCDN_WEBSITE_ID }} | ||
ROCKET_EMAIL: ${{ secrets.ROCKET_EMAIL }} | ||
ROCKET_KEY: ${{ secrets.ROCKET_KEY }} | ||
ROCKET_CLOUDFLARE_API_KEY: ${{ secrets.ROCKET_CLOUDFLARE_API_KEY }} | ||
ROCKET_CLOUDFLARE_EMAIL: ${{ secrets.ROCKET_CLOUDFLARE_EMAIL }} | ||
ROCKET_CLOUDFLARE_SITE_URL: ${{ secrets.ROCKET_CLOUDFLARE_SITE_URL }} | ||
ROCKET_CLOUDFLARE_ZONE_ID: ${{ secrets.ROCKET_CLOUDFLARE_ZONE_ID }} | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
coverage: xdebug | ||
tools: composer:v1, phpunit | ||
|
||
- name: Setup problem matchers for PHP | ||
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json" | ||
|
||
- name: Setup problem matchers for PHPUnit | ||
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" | ||
|
||
- name: Get composer cache directory | ||
id: composercache | ||
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | ||
|
||
- name: Cache dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: ${{ steps.composercache.outputs.dir }} | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} | ||
restore-keys: ${{ runner.os }}-composer- | ||
|
||
- name: Install dependencies | ||
run: composer install --no-interaction --no-scripts | ||
|
||
- name: Code Coverage | ||
run: composer code-coverage | ||
|
||
- name: Run codacy-coverage-reporter | ||
uses: codacy/codacy-coverage-reporter-action@v1 | ||
with: | ||
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} | ||
coverage-reports: tests/report/coverage.clover |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.