Skip to content

Detect the _deprecated_file() call anywhere in a file's uses #342

Detect the _deprecated_file() call anywhere in a file's uses

Detect the _deprecated_file() call anywhere in a file's uses #342

Workflow file for this run

name: Unit Tests
on:
pull_request:
push:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
test-php:
name: PHP ${{ matrix.php-version }}
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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- 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