Skip to content

Commit

Permalink
chore: php 8 support (#28)
Browse files Browse the repository at this point in the history
* chore: add php 8 support

* chore: update pipeline
  • Loading branch information
fdalcin authored Oct 18, 2022
1 parent 9f9d934 commit c59467c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 18 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/.pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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', latest ]
experimental: [ false ]
wordpress: [ 6.0.2, latest ]
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 }}

steps:
Expand Down Expand Up @@ -71,4 +71,4 @@ jobs:
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
if: matrix.experimental == false
if: matrix.experimental == false
9 changes: 5 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@
"docs": "https://github.com/pressbooks/pressbooks-stats/wiki"
},
"config": {
"platform": {
"php": "7.4"
}
"allow-plugins": {
"composer/installers": true,
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"require": {
"php": ">=7.4",
"php": "^7.4|8.0.*",
"composer/installers": "^2",
"phpcompatibility/php-compatibility": "^9.3"
},
Expand Down
9 changes: 3 additions & 6 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c59467c

Please sign in to comment.