Skip to content

Update add-new-preview-btn.js #4

Update add-new-preview-btn.js

Update add-new-preview-btn.js #4

Workflow file for this run

name: WP Decoupled Preview Lint
on: push
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
- name: Run linter
run: composer lint
- name: Run tests
run: composer test