Bump @wordpress/eslint-plugin from 21.6.0 to 22.0.0 #688
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: Tests, Behat, Coding Standards | |
on: | |
push: | |
branches: | |
- 'master' | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-versions: ['7.2', '5.4'] | |
steps: | |
- uses: actions/checkout@master | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-versions }} | |
extensions: mbstring, intl | |
ini-values: post_max_size=256M, short_open_tag=On | |
tools: phpunit, composer | |
- name: Set COMPOSER environment variable for 5.4 | |
if: matrix.php-versions == '5.4' | |
run: echo "COMPOSER=composer-php-5-4.json" >> $GITHUB_ENV | |
- name: Run tests | |
run: | | |
composer install | |
./vendor/bin/phpunit -c ./phpunit.xml.dist | |
behat: | |
runs-on: ubuntu-latest | |
services: | |
mysql: | |
image: mysql:5.7 | |
env: | |
MYSQL_ALLOW_EMPTY_PASSWORD: yes | |
MYSQL_DATABASE: pluginkollektiv_antispambee_behat | |
ports: | |
- '8888:3306' | |
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 | |
strategy: | |
matrix: | |
php: ['8.3'] | |
wordpress: ['nightly', 'latest'] | |
include: | |
- php: '8.2' | |
wordpress: '6.3' | |
- php: '8.1' | |
wordpress: '6.2' | |
- php: '8.0' | |
wordpress: '6.0' | |
- php: '7.3' | |
wordpress: '5.0' | |
- php: '7.2' | |
wordpress: '4.6' | |
steps: | |
- uses: actions/checkout@master | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
extensions: mbstring, intl, pdo_mysql, zip | |
ini-values: post_max_size=256M, short_open_tag=On | |
tools: phpunit, composer | |
- name: Start mysql service | |
run: sudo /etc/init.d/mysql start | |
- name: Install XVFB | |
run: sudo apt-get update && sudo apt-get install xvfb | |
- name: Run tests | |
run: | | |
composer install --ignore-platform-req=php | |
xvfb-run -n 99 ./bin/behat.sh | |
env: | |
WORDPRESS_VERSION: ${{ matrix.wordpress }} | |
NAP_LENGTH: 10 | |
- name: Cleanup xvfb | |
uses: bcomnes/cleanup-xvfb@v1 | |
quality: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.2' | |
extensions: mbstring, intl | |
ini-values: post_max_size=256M, short_open_tag=On | |
tools: phpunit, composer | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '20' | |
- name: Run code style checks for CSS, JavaScript and PHP | |
run: | | |
composer install --ignore-platform-req=php | |
npm install | |
composer lint-all | |
composer cs |