Skip to content

chore: cleanup cast text #4

chore: cleanup cast text

chore: cleanup cast text #4

Workflow file for this run

name: PHPUnit Tests
on: [push]
jobs:
test:
runs-on: ubuntu-latest
services:
mysql:
image: mariadb:latest
ports:
- '3306:3306'
env:
MYSQL_ROOT_PASSWORD: wordpress
MARIADB_INITDB_SKIP_TZINFO: 1
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
MYSQL_DATABASE: wordpress_test
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set Up PHP
uses: shivammathur/setup-php@v2
with:
coverage: none
php-version: "8.2"
- name: Install PHP Dependencies
uses: ramsey/composer-install@v3
- name: Set Up WordPress and WordPress Test Library
uses: sjinks/setup-wordpress-test-library@master
with:
version: latest
- name: Verify MariaDB Connection
run: |
while ! mysqladmin ping -h 127.0.0.1 -P ${{ job.services.mysql.ports[3306] }} --silent; do
sleep 1
done
timeout-minutes: 1
- name: Run PHPUnit Tests
run: composer test