Skip to content

Bump phpunit/phpunit from 9.6.22 to 11.5.6 #38

Bump phpunit/phpunit from 9.6.22 to 11.5.6

Bump phpunit/phpunit from 9.6.22 to 11.5.6 #38

Workflow file for this run

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: |
if [ -z "$(ls -A vendor/automattic/vipwpcs)" ]; then
echo "VIPWPCS is empty"
git clone https://github.com/Automattic/VIP-Coding-Standards.git vendor/automattic/vipwpcs
else
echo "VIPWPCS is not empty"
fi
- 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