Add a current_user_can
check to our cache clearing method
#640
Workflow file for this run
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: PHPUnit | |
on: | |
push: | |
branches: | |
- develop | |
- trunk | |
pull_request: | |
branches: | |
- develop | |
jobs: | |
phpunit: | |
name: ${{ matrix.php }} | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
php: [ '7.4', '8.0' ] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set PHP version | |
uses: shivammathur/[email protected] | |
with: | |
php-version: ${{ matrix.php }} | |
coverage: none | |
tools: phpunit-polyfills | |
- name: Update dependencies | |
run: composer update -W | |
- name: PHPUnit Test | |
run: ./vendor/bin/phpunit | |
- name: PHPUnit Network Test | |
run: ./vendor/bin/phpunit -c tests/phpunit/multisite/multisite.xml |