Bump cross-spawn from 7.0.3 to 7.0.6 in the npm_and_yarn group across 1 directory #183
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: 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@v4 | |
- 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@v4 | |
- 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@v4 | |
- 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@v4 | |
- uses: pantheon-systems/[email protected] | |
with: | |
filepath: 'README.MD' |