TEST PR: Identical to "#666 ✨😈☝️ pull request preview playground" ?? #38
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 Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
test-php: | |
name: ${{ matrix.php_versions }} on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ ubuntu-latest ] | |
php_versions: [ '7.4', '8.0', '8.1', '8.2', '8.3' ] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php_versions }} | |
coverage: xdebug | |
- name: Composer Install | |
run: composer install --optimize-autoloader --prefer-dist | |
- name: Install NodeJS | |
uses: actions/setup-node@v2 | |
with: | |
node-version-file: '.nvmrc' | |
- name: Log debug information | |
run: | | |
npm --version | |
node --version | |
git --version | |
php --version | |
composer --version | |
- name: Running PHPUnit Tests | |
run: | | |
php --version | |
npm i -g @wordpress/env | |
npm run test:unit:php | |
if: ${{ success() || failure() }} |