Skip to content

style: auto-fix some space, newline and indentation issues #541

style: auto-fix some space, newline and indentation issues

style: auto-fix some space, newline and indentation issues #541

Workflow file for this run

name: Tests, Behat, Coding Standards
on: push
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['7.3', '7.2']
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: 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']
wordpress: ['nightly', 'latest']
include:
- php: '7.4'
wordpress: '5.5'
- php: '7.4'
wordpress: '5.4'
- php: '7.3'
wordpress: '5.3'
- php: '7.3'
wordpress: '5.2'
- php: '7.3'
wordpress: '5.1'
- php: '7.2'
wordpress: '4.9'
- php: '7.2'
wordpress: '4.8'
- php: '7.2'
wordpress: '4.7'
- 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
./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'
tools: composer
- name: Run code style checks for CSS, JavaScript and PHP
run: |
composer install
composer cs