Skip to content

Commit

Permalink
Add wp and wc versions to unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
halilozanakgul committed Feb 3, 2025
1 parent 00f5ff1 commit 0c2f740
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/php-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ concurrency:

jobs:
UnitTests:
name: PHP unit tests - PHP ${{ matrix.php }}, WP ${{ matrix.wp-version }}
name: PHP unit tests - PHP ${{ matrix.php }}, WP ${{ matrix.wp-version }}, WC ${{ matrix.wc-version }}
runs-on: ubuntu-latest
env:
WP_CORE_DIR: "/tmp/wordpress/src"
Expand All @@ -32,6 +32,7 @@ jobs:
matrix:
php: [7.4, 8.3]
wp-version: [latest]
wc-version: [latest]

steps:
- name: Install SVN
Expand All @@ -49,7 +50,7 @@ jobs:
uses: woocommerce/grow/prepare-mysql@actions-v1

- name: Install WP tests
run: ./bin/install-wp-tests.sh wordpress_test root root localhost ${{ matrix.wp-version }}
run: ./bin/install-wp-tests.sh wordpress_test root root localhost ${{ matrix.wp-version }} ${{ matrix.wc-version }}

- name: Run PHP unit tests
run: composer test-unit

0 comments on commit 0c2f740

Please sign in to comment.