test
All checks were successful
PHP Code Checker / Run PHP Code Checker (pull_request) Successful in 1m40s
Unit Testing / Run phpunit tests (pull_request) Successful in 1m2s

This commit is contained in:
André Menrath 2024-09-21 13:15:52 +02:00
parent 6c71423d62
commit 380495e1b6
2 changed files with 6 additions and 12 deletions

View file

@ -31,9 +31,7 @@ jobs:
with: with:
path: | path: |
./vendor/ ./vendor/
/root/.cache/composer/ key: cache-composer-4
/usr/local/bin/composer
key: cache-composer-3
- name: Setup PHP - name: Setup PHP
uses: https://github.com/shivammathur/setup-php@v2 uses: https://github.com/shivammathur/setup-php@v2

View file

@ -43,9 +43,7 @@ jobs:
with: with:
path: | path: |
./vendor/ ./vendor/
/root/.cache/composer/ key: cache-composer-4
/usr/local/bin/composer
key: cache-composer-3
- name: Setup PHP - name: Setup PHP
uses: https://github.com/shivammathur/setup-php@v2 uses: https://github.com/shivammathur/setup-php@v2
@ -56,11 +54,11 @@ jobs:
env: env:
runner: self-hosted runner: self-hosted
- name: Install Composer dependencies for PHP - name: Install composer dependencies for PHP
if: steps.cache-composer.outputs.cache-hit != 'true' if: steps.cache-composer.outputs.cache-hit != 'true'
uses: ramsey/composer-install@v3 uses: ramsey/composer-install@v3
- name: Install and Cache mysqladmin needed to initialize the Test Database - name: Install and cache mysqladmin needed to initialize the test database
uses: https://github.com/awalsh128/cache-apt-pkgs-action@latest uses: https://github.com/awalsh128/cache-apt-pkgs-action@latest
with: with:
packages: mysql-client packages: mysql-client
@ -68,14 +66,12 @@ jobs:
- name: Setup Test Environment - name: Setup Test Environment
if: steps.cache-wordpress.outputs.cache-hit != 'true' if: steps.cache-wordpress.outputs.cache-hit != 'true'
run: bash bin/install-wp-tests.sh wordpress_test root root 127.0.0.1 6.6 run: bash bin/install-wp-tests.sh wordpress_test root root 127.0.0.1 6.6 false false false false
- name: Setup WordPress Test Database - name: Initialize WordPress test database
if: steps.cache-wordpress.outputs.cache-hit != 'false' if: steps.cache-wordpress.outputs.cache-hit != 'false'
run: bash bin/install-wp-tests.sh wordpress_test root root 127.0.0.1 6.6 false true true true run: bash bin/install-wp-tests.sh wordpress_test root root 127.0.0.1 6.6 false true true true
- run: composer show -i
- name: Unit Testing - name: Unit Testing
run: cd /workspace/Event-Federation/wordpress-activitypub-event-extensions/ && ./vendor/bin/phpunit run: cd /workspace/Event-Federation/wordpress-activitypub-event-extensions/ && ./vendor/bin/phpunit
env: env: