Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 14 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,17 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: pdo, pdo_mysql, mbstring, intl, zip
extensions: pdo, pdo_mysql, mbstring, intl, zip, dom, gd, xml
coverage: xdebug
tools: composer:v2

- name: Cache Composer dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: vendor
path: |
vendor
.pint.cache
.phpstan/cache
key: ${{ runner.os }}-php-${{ matrix.php }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-${{ matrix.php }}-composer-
Expand Down Expand Up @@ -74,8 +77,14 @@ jobs:
cd /tmp/wordpress-develop
php tests/phpunit/includes/install.php wp-tests-config.php

- name: Run quality checks
run: composer quality
- name: Check code style
run: composer format:check

- name: Run static analysis
run: composer static-analysis

- name: Run tests
run: composer test

- name: Run tests with coverage
run: composer test:coverage
Expand Down
7 changes: 6 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,12 @@
"format": "pint",
"format:check": "pint --test",
"static-analysis": "phpstan analyse --memory-limit=1G",
"quality": "@composer validate --strict && @format:check && @static-analysis && @test"
"quality": [
"composer validate --strict",
"@format:check",
"@static-analysis",
"@test"
]
},
"config": {
"allow-plugins": {
Expand Down
2 changes: 0 additions & 2 deletions tests/Unit/LazyLoadingTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

use Mockery;

/**
* Unit tests for LazyLoading module
*/
Expand Down
Loading