Skip to content

chore: bump version to v3.7.2 #152

chore: bump version to v3.7.2

chore: bump version to v3.7.2 #152

Workflow file for this run

name: PHP Unit Tests
on:
push:
branches:
- master
pull_request:
branches:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
phpunit:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-versions: [ '8.1', '8.2', '8.3' ]
wp-versions: [ 'latest' ]
name: WordPress ${{ matrix.wp-versions }} / PHP ${{ matrix.php-versions }}
env:
WP_TESTS_DIR: /tmp/wordpress-tests-lib
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
- name: Setup Database
uses: getong/mariadb-action@v1.1
- name: Check PHP Version
run: php -v
- name: Composer install
run: composer install --optimize-autoloader --prefer-dist
- name: Install WP Tests
run: bash bin/install-wp-tests.sh wordpress_test root '' 127.0.0.1 ${{ matrix.wp-versions }}
- name: phpunit tests
run: ./vendor/bin/phpunit
env:
WP_TESTS_DIR: /tmp/wordpress-tests-lib
WP_CORE_DIR: /tmp/wordpress