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. 7
      composer.json
  3. 7
      composer.lock

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

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

7
composer.json

@ -18,17 +18,14 @@
"forum": "https://discourse.pressbooks.org/" "forum": "https://discourse.pressbooks.org/"
}, },
"config": { "config": {
"platform": { "sort-packages": true,
"php": "7.4"
},
"sort-packages": true,
"allow-plugins": { "allow-plugins": {
"composer/installers": true, "composer/installers": true,
"dealerdirect/phpcodesniffer-composer-installer": true "dealerdirect/phpcodesniffer-composer-installer": true
} }
}, },
"require": { "require": {
"php": ">=7.4", "php": "^7.4|8.0.*",
"composer/installers": "^2", "composer/installers": "^2",
"phpcompatibility/php-compatibility": "^9.3", "phpcompatibility/php-compatibility": "^9.3",
"pressbooks/mix": "^2.1", "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", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "4d7cd01dc8e472d2a68d952060a21d78", "content-hash": "bca254bf292cf20628d024e2b7bf1d91",
"packages": [ "packages": [
{ {
"name": "composer/installers", "name": "composer/installers",
@ -2857,11 +2857,8 @@
"prefer-stable": false, "prefer-stable": false,
"prefer-lowest": false, "prefer-lowest": false,
"platform": { "platform": {
"php": ">=7.4" "php": "^7.4|8.0.*"
}, },
"platform-dev": [], "platform-dev": [],
"platform-overrides": {
"php": "7.4"
},
"plugin-api-version": "2.3.0" "plugin-api-version": "2.3.0"
} }

Loading…
Cancel
Save