Skip to content

Update yoast/phpunit-polyfills requirement from ^2.0 to ^2.0 || ^3.0 #76

Update yoast/phpunit-polyfills requirement from ^2.0 to ^2.0 || ^3.0

Update yoast/phpunit-polyfills requirement from ^2.0 to ^2.0 || ^3.0 #76

Workflow file for this run

name: SemVer Test Suite
on: [push, pull_request, workflow_dispatch]
jobs:
coding-standards:
name: Coding Standards
runs-on: 'ubuntu-latest'
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install PHP Dependencies
run: composer update
- name: Verify Coding Standards
run: vendor/bin/php-cs-fixer fix --diff --dry-run
static-analysis:
name: Static Analysis
runs-on: 'ubuntu-latest'
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install PHP Dependencies
run: composer update
- name: Run Static Analysis
run: vendor/bin/phpstan analyze
tests:
name: Tests
runs-on: 'ubuntu-latest'
strategy:
matrix:
php-versions: ['8.1', '8.2', '8.3']
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
coverage: xdebug
- name: Install PHP Dependencies
run: composer update
- name: Run Tests
run: vendor/bin/phpunit --coverage-text