Skip to content

Fix necessary early composer install #193

Fix necessary early composer install

Fix necessary early composer install #193

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-version:
- "7.4"
- "8.4"
env:
WP_ENV_PHP_VERSION: ${{ matrix.php-version }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up PHP
uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # 2.37.2
with:
php-version: ${{ matrix.php-version }}
coverage: none
- name: Install Node dependencies
run: npm ci
- name: Install Composer dependencies
run: composer install --no-interaction --no-security-blocking
- name: Setup test environment
run: npm run test:phpunit:setup
- name: Test
run: npm run test