Bump micromatch from 4.0.5 to 4.0.8 in the npm_and_yarn group #164
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: Lint and Test | |
on: | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- synchronize | |
- ready_for_review | |
jobs: | |
lint-test: | |
runs-on: ubuntu-latest | |
name: Lint & Test | |
env: | |
DB_USER: root | |
DB_PASSWORD: root | |
DB_HOST: localhost | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install NPM & Composer dependencies | |
run: | | |
composer install | |
npm install | |
- name: Setup MySQL | |
run: | | |
sudo /etc/init.d/mysql start | |
mysql -e 'CREATE DATABASE IF NOT EXISTS wordpress_test;' -uroot -proot | |
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 true | |
- name: Run linter | |
run: composer lint | |
- name: Run tests | |
run: composer test | |
wporg-code-analysis: | |
runs-on: ubuntu-latest | |
name: WP.org Code Analysis | |
steps: | |
- uses: actions/checkout@v3 | |
- name: WP.org Code Analysis | |
uses: pantheon-systems/[email protected] | |
with: | |
type: plugin | |
phpcompatibility: | |
runs-on: ubuntu-latest | |
name: PHP Compatibility | |
steps: | |
- uses: actions/checkout@v3 | |
- run: echo "Note these tests may be incomplete for newer PHP version and miss some deprecations" | |
shell: bash | |
- name: PHPCompatibility | |
# using @dev because PHPCompatibility ^9 does not yet have the | |
# sniffers for 8.0+ but main branch does | |
uses: pantheon-systems/phpcompatibility-action@dev | |
with: | |
test-versions: 8.0- | |
validate-readme-spacing: | |
name: Validate README Spacing | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: pantheon-systems/validate-readme-spacing@v1 | |
with: | |
filepath: 'README.MD' |