Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARCH-72 #4400

Open
wants to merge 12 commits into
base: release
Choose a base branch
from
42 changes: 42 additions & 0 deletions .github/workflows/php-compatibility.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: PHP Compatibility

on: pull_request

jobs:
php-compatibility:
name: PHP Compatibility
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [ '7.4', '8.0', '8.1', '8.2' ]

steps:
- name: Cancel previous runs of this workflow (pull requests only)
if: ${{ github.event_name == 'pull_request' }}
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

- name: Checkout code
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: none

- name: Validate composer.json and composer.lock
run: composer validate --strict

- name: Install dependencies
uses: ramsey/composer-install@v2
with:
composer-options: "--ignore-platform-reqs --no-scripts"

- name: Run Check standards
run: vendor/bin/phpcs -i

- name: Run PHPCompatibilityWP
run: vendor/bin/phpcs --standard=PHPCompatibilityWP --extensions=php --error-severity=4 --warning-severity=6 --runtime-set testVersion ${{ matrix.php }} . --ignore="vendor/sebastian/*,vendor/squizlabs/*,vendor/phpcompatibility/*,vendor/dealerdirect/*,vendor/symfony/*,vendor/phpunit/*"
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"social network"
],
"homepage": "https://buddypress.org",
"license": "GPL-2.0+",
"license": "GPL-2.0-or-later",
"authors": [ {
"name": "BuddyPress Community",
"homepage": "https://buddypress.org/about/"
Expand All @@ -29,7 +29,7 @@
"require": {
"composer/installers": "~1.0",
"php": ">=5.3.0",
"phpunit/phpunit": "6.1.0",
"phpunit/phpunit": "6.1.*",
"php-ffmpeg/php-ffmpeg": "^0.16.0",
"maennchen/zipstream-php": "^2.1"
},
Expand Down
Loading
Loading