Skip to content

Commit

Permalink
Update unit-tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaydsouza committed Jan 11, 2025
1 parent d3814f7 commit b8a7691
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,19 +67,13 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Install Subversion
run: sudo apt-get install subversion

- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: mysqli, mysql
coverage: none

- name: Set up WordPress
run: phpunit/install.sh wordpress_test root '' 127.0.0.1:3306 ${{ matrix.wp }}

# On WP 5.2, PHPUnit 5.x, 6.x and 7.x are supported.
# On PHP >= 8.0, PHPUnit 7.5+ is needed, no matter what.
- name: Determine supported PHPUnit version
Expand Down Expand Up @@ -109,21 +103,23 @@ jobs:
with:
composer-options: --ignore-platform-reqs

- name: 'Run Composer Update'
run: |
composer update --ignore-platform-reqs
- name: Install Subversion
run: sudo apt-get install subversion

- name: Set up WordPress
run: phpunit/install.sh wordpress_test root '' 127.0.0.1:3306 ${{ matrix.wp }}

- name: Tool versions
run: |
php --version
composer --version
phpunit --version
which phpunit
./vendor/bin/phpunit --version
which ./vendor/bin/phpunit
- name: Run the unit tests - single site
run: vendor/bin/phpunit
run: ./vendor/bin/phpunit

- name: Run the unit tests - multisite
run: vendor/bin/phpunit
env:
WP_MULTISITE: 1
run: ./vendor/bin/phpunit

0 comments on commit b8a7691

Please sign in to comment.