Skip to content

Commit

Permalink
Merge pull request #118 from 10up/php8-compat
Browse files Browse the repository at this point in the history
Add PHP8 compatibility workflow
  • Loading branch information
jeffpaul committed Apr 18, 2022
2 parents 3bdaff5 + 78699e8 commit 3858b9b
Show file tree
Hide file tree
Showing 4 changed files with 437 additions and 7 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/php-compatibility.yml
@@ -0,0 +1,33 @@
name: PHP Compatibility

on:
push:
branches:
- develop
- trunk
pull_request:
branches:
- develop

jobs:
php-compatibility:
name: PHP minimum 5.6

runs-on: ubuntu-latest

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

- name: Set PHP version
uses: shivammathur/setup-php@v2
with:
php-version: '7.0'
tools: composer:v2
coverage: none

- name: Install dependencies
run: composer install

- name: Run PHP Compatibility
run: vendor/bin/phpcs insert-special-characters.php --standard=PHPCompatibilityWP --extensions=php --runtime-set testVersion 5.6-
4 changes: 3 additions & 1 deletion composer.json
Expand Up @@ -12,7 +12,9 @@
],
"minimum-stability": "dev",
"prefer-stable": true,
"require": {},
"require-dev": {
"10up/phpcs-composer": "dev-master"
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
Expand Down

0 comments on commit 3858b9b

Please sign in to comment.