wordpress-event-bridge-for-.../.woodpecker/test.yml
André Menrath f77f4bc017
All checks were successful
PHP Code Checker / Run PHP Code Checker (push) Successful in 42s
Unit Testing / Run phpunit tests (push) Successful in 3m55s
add forgejo actions for phpunit and phpcs
2024-09-21 11:00:33 +02:00

19 lines
607 B
YAML

when:
- event: push
branch: woodpecker
steps:
- name: build
image: php:8.3
environment:
WP_TESTS_PHPUNIT_POLYFILLS_PATH: vendor/yoast/phpunit-polyfills
commands:
- apt -y update
- apt -y install libonig-dev
- docker-php-ext-install mbstring mysqli pdo_mysql intl gd zip bz2
- docker-php-ext-enable mbstring mysqli pdo_mysql intl gd zip bz2
- composer require --dev yoast/phpunit-polyfills:"^3.0"
- composer install
- bash bin/install-wp-tests.sh wordpress_tests root mysql mysql 6.6 true
- phpunit --configuration phpunit.xml.dist