[SETUP]: Bump node from 22.13.0 to 22.13.1 in /docker/node #357
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: PHP Tests | |
on: | |
pull_request: | |
env: | |
fail-fast: true | |
jobs: | |
test: | |
name: PHP Tests | |
runs-on: ubuntu-latest | |
services: | |
database: | |
image: mariadb:10.11.9 | |
env: | |
MYSQL_ROOT_PASSWORD: root | |
MYSQL_DATABASE: wordpress | |
ports: | |
- 3306:3306 | |
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- php: 8.2 | |
required: 'required' | |
- php: 8.3 | |
required: 'required' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
extensions: intl, zip, pcov | |
coverage: pcov | |
- name: Setup dependencies | |
run: composer install | |
continue-on-error: ${{ matrix.required == 'optional' }} | |
- name: Run PHPCS | |
run: composer phpcs | |
continue-on-error: ${{ matrix.required == 'optional' }} | |
- name: Run PHPStan | |
run: composer phpstan | |
continue-on-error: ${{ matrix.required == 'optional' }} | |
- name: Run Security Checks | |
uses: symfonycorp/security-checker-action@v5 | |
continue-on-error: ${{ matrix.required == 'optional' }} | |
- name: Run PHPUnit | |
run: composer phpunit | |
continue-on-error: ${{ matrix.required == 'optional' }} | |
- name: Run PHP Integration Tests | |
run: composer phpintegration | |
continue-on-error: ${{ matrix.required == 'optional' }} | |
env: | |
DB_NAME: wordpress | |
DB_USER: root | |
DB_PASSWORD: root | |
DB_HOST: database |