why #31
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 & Test | |
on: [push] | |
permissions: | |
contents: write | |
actions: read | |
pull-requests: write | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Composer Dependencies | |
run: composer install --no-interaction --prefer-dist --no-cache -vvv | |
- name: Why? | |
run: | | |
composer why automattic/vipwpcs | |
- name: Lint | |
run: composer lint | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
services: | |
mariadb: | |
image: mariadb:10.6 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Start MariaDB | |
run: sudo systemctl start mysql | |
- name: Setup WP-CLI | |
uses: godaddy-wordpress/setup-wp-cli@1 | |
- name: Install Composer dependencies | |
run: | | |
composer install | |
chmod +x bin/*.sh | |
- name: Test | |
run: bash ./bin/phpunit-test.sh |