Support has_published_posts
arg in WP_User_Query
#209
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
name: PHP Standards | |
on: | |
push: | |
branches: | |
- 'develop' | |
- 'main' | |
pull_request: | |
branches: | |
- '**' | |
jobs: | |
build: | |
name: PHP Coding Standards | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v1 | |
- name: Install PHP | |
uses: shivammathur/[email protected] | |
with: | |
php-version: '7.4' | |
coverage: none | |
- name: Debugging | |
run: | | |
php --version | |
php -m | |
composer --version | |
- name: Get Composer Cache Directory | |
id: composer-cache-dir | |
run: | | |
echo "::set-output name=dir::$(composer config cache-files-dir)" | |
- name: Cache PHP Dependencies | |
id: composer-cache | |
uses: actions/cache@v2 | |
with: | |
path: ${{ steps.composer-cache-dir.outputs.dir }} | |
key: ${{ runner.os }}-composer-7.2-${{ hashFiles('composer.lock') }} | |
- name: Install PHP Dependencies | |
run: | | |
composer install --prefer-dist --no-progress --no-suggest --no-interaction | |
- name: PHPCS cache | |
uses: actions/cache@v2 | |
with: | |
path: tests/cache | |
key: ${{ runner.os }}-phpcs-7.2-${{ hashFiles('plugin.php') }} | |
- name: Run the tests | |
run: | | |
composer test:phpcs | |
composer test:phpstan | |
env: | |
MYSQL_DATABASE: wordpress | |
WP_TESTS_DB_PASS: root |