Browse Source

chore: php 8 support (#361)

* chore: add php 8 support

* chore: update pipeline
pull/363/head
Felipe Dalcin 2 years ago committed by GitHub
parent
commit
5744c620f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      .github/workflows/standards-and-tests.yml
  2. 5
      composer.json
  3. 7
      composer.lock

12
.github/workflows/standards-and-tests.yml

@ -13,15 +13,15 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [ 7.4 ]
php: [ 7.4, 8.0 ]
os: [ ubuntu-20.04 ]
wordpress: [ 6.0.2, latest ]
experimental: [ false ]
include:
- php: 8.0
os: ubuntu-20.04
wordpress: latest
experimental: true
- experimental: true
- experimental: false
php: 8.0
wordpress: 6.0.2
name: Test - PHP ${{ matrix.php }} - WP ${{ matrix.wordpress }}
env:

5
composer.json

@ -18,9 +18,6 @@
"forum": "https://discourse.pressbooks.org/"
},
"config": {
"platform": {
"php": "7.4"
},
"sort-packages": true,
"allow-plugins": {
"composer/installers": true,
@ -28,7 +25,7 @@
}
},
"require": {
"php": ">=7.4",
"php": "^7.4|8.0.*",
"composer/installers": "^2",
"phpcompatibility/php-compatibility": "^9.3",
"pressbooks/mix": "^2.1",

7
composer.lock generated

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "4d7cd01dc8e472d2a68d952060a21d78",
"content-hash": "bca254bf292cf20628d024e2b7bf1d91",
"packages": [
{
"name": "composer/installers",
@ -2857,11 +2857,8 @@
"prefer-stable": false,
"prefer-lowest": false,
"platform": {
"php": ">=7.4"
"php": "^7.4|8.0.*"
},
"platform-dev": [],
"platform-overrides": {
"php": "7.4"
},
"plugin-api-version": "2.3.0"
}

Loading…
Cancel
Save