Skip to content

Modernize parser to PHP 8.1+ with phpstan/phpdoc-parser #36

Modernize parser to PHP 8.1+ with phpstan/phpdoc-parser

Modernize parser to PHP 8.1+ with phpstan/phpdoc-parser #36

Workflow file for this run

name: Unit Tests
on:
pull_request:
push:
workflow_dispatch:
jobs:
test-php:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php:
- '8.1'
- '8.2'
- '8.3'
env:
WP_ENV_PHP_VERSION: ${{ matrix.php }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'
- name: Install Node.js dependencies
run: npm ci
- name: Setup WordPress environment
run: npm run setup
- name: Run tests
run: npm run test