Bump pantheon-systems/pantheon-wp-coding-standards from 2.0.1 to 2.0.3 #175
Workflow file for this run
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: 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 |