fix: undefined array key 'context' warning in Gutenberg.php (PHP 8+) #701
Workflow file for this run
This file contains hidden or 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 tests | |
| permissions: | |
| contents: read | |
| on: pull_request | |
| jobs: | |
| phpunit: | |
| name: phpunit | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| php-version: ['7.4', '8.0', '8.2'] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Set PHP version | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php-version }} | |
| - name: npm install | |
| run: npm install | |
| - name: composer install | |
| run: cd ./wp/headless-wp && composer install --ignore-platform-reqs | |
| - name: Run tests | |
| run: npm run test:php -w=wp/headless-wp |