Document renamed folder. #23
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PHP Unit Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
php-versions: ['7.4', '8.0', '8.1', '8.2', '8.3'] | |
wp-versions: [ 'trunk' ] | |
name: WP ${{ matrix.wp-versions }} / PHP ${{ matrix.php-versions }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- 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: ${{ runner.temp }}/wordpress-tests-lib | |
WP_CORE_DIR: ${{ runner.temp }}/wordpress |