Fix $callback type for add_submenu_page
#5
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: Tests | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
permissions: | |
contents: read | |
jobs: | |
tests: | |
name: Tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-version: | |
- "7.4" | |
- "8.0" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
coverage: none | |
ini-file: development | |
php-version: "${{ matrix.php-version }}" | |
- name: Install dependencies | |
run: composer install --no-interaction --no-progress --prefer-dist | |
- name: Tests | |
run: | | |
./generate.sh # Generate stubs | |
php -l wordpress-stubs.php # Check stubs syntax | |
git diff --exit-code # Check stubs changes compared to repository | |
php -f wordpress-stubs.php # Execute stubs | |
composer run test # Run all tests | |