Skip to content

Bump phpunit/phpunit from 9.6.20 to 9.6.22 #182

Bump phpunit/phpunit from 9.6.20 to 9.6.22

Bump phpunit/phpunit from 9.6.20 to 9.6.22 #182

Workflow file for this run

name: WP Decoupled Preview Lint
on: pull_request
jobs:
lint:
runs-on: ubuntu-latest
name: Lint & Test
env:
DB_USER: root
DB_PASSWORD: root
DB_HOST: localhost
steps:
- uses: actions/checkout@v2
- name: Install Composer dependencies
run: composer install
- name: Setup MySQL
run: |
sudo /etc/init.d/mysql start
mysql -e 'SHOW DATABASES;' -uroot -proot
- name: Install WP Unit tests
run: |
php -v
mysqladmin -V
bash .bin/install-wp-tests.sh wordpress_test root root localhost latest
rm -rf $WP_TESTS_DIR $WP_CORE_DIR
bash .bin/install-wp-tests.sh wordpress_test root root localhost nightly true
- name: Run linter
run: composer lint
- name: Run tests
run: composer test