2024-09-20 21:50:15 +02:00
|
|
|
when:
|
|
|
|
- event: push
|
|
|
|
branch: woodpecker
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build
|
2024-09-20 22:41:45 +02:00
|
|
|
image: php:8.3
|
2024-09-20 22:24:34 +02:00
|
|
|
environment:
|
|
|
|
WP_TESTS_PHPUNIT_POLYFILLS_PATH: vendor/yoast/phpunit-polyfills
|
2024-09-20 21:50:15 +02:00
|
|
|
commands:
|
2024-09-20 22:46:32 +02:00
|
|
|
- apt -y update
|
2024-09-21 08:23:06 +02:00
|
|
|
- apt -y install libonig-dev libicu-dev zlib1g zlib1g-dev libpng-dev libzip-dev bzip2 libbz2-dev subversion
|
2024-09-20 22:45:14 +02:00
|
|
|
- docker-php-ext-install mbstring mysqli pdo_mysql intl gd zip bz2
|
|
|
|
- docker-php-ext-enable mbstring mysqli pdo_mysql intl gd zip bz2
|
2024-09-21 07:57:00 +02:00
|
|
|
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
2024-09-20 22:21:10 +02:00
|
|
|
- composer require --dev yoast/phpunit-polyfills:"^3.0"
|
2024-09-21 09:09:24 +02:00
|
|
|
- composer require --dev phpunit/phpunit ^11
|
2024-09-20 22:08:20 +02:00
|
|
|
- composer install
|
2024-09-20 22:30:05 +02:00
|
|
|
- bash bin/install-wp-tests.sh wordpress_tests root mysql mysql latest true
|
2024-09-21 08:29:32 +02:00
|
|
|
- ./vendor/bin/phpunit --configuration phpunit.xml.dist
|
2024-09-20 21:57:51 +02:00
|
|
|
|
|
|
|
services:
|
2024-09-21 09:26:56 +02:00
|
|
|
- name: mysql
|
2024-09-20 21:57:51 +02:00
|
|
|
image: mysql
|
|
|
|
environment:
|
2024-09-20 21:58:50 +02:00
|
|
|
MYSQL_DATABASE: wordpress_tests
|
|
|
|
MYSQL_ROOT_PASSWORD: mysql
|