Skip to content

Commit

Permalink
Set minimum PHP version to 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
myrotvorets-team committed Nov 10, 2023
1 parent 11a8d18 commit 1efdcaa
Show file tree
Hide file tree
Showing 6 changed files with 336 additions and 633 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,19 @@ permissions:
jobs:
unit-tests:
name: "WP ${{ matrix.config.wp }}, multisite: ${{ matrix.config.ms }}, PHP: ${{ matrix.config.php }}"
if: "!contains(github.event.head_commit.message, '[ci skip]')"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
config:
- { wp: latest, ms: 'no', php: '7.4', phpunit: 7 }
- { wp: nightly, ms: 'no', php: '7.4', phpunit: 7 }
- { wp: latest, ms: 'yes', php: '7.4', phpunit: 7 }
- { wp: nightly, ms: 'yes', php: '7.4', phpunit: 7 }

- { wp: latest, ms: 'no', php: '8.0', phpunit: 9, coverage: 'yes' }
- { wp: nightly, ms: 'no', php: '8.0', phpunit: 9, coverage: 'yes' }
- { wp: latest, ms: 'yes', php: '8.0', phpunit: 9, coverage: 'yes' }
- { wp: nightly, ms: 'yes', php: '8.0', phpunit: 9, coverage: 'yes' }
- { wp: latest, ms: 'no', php: '8.1', phpunit: 9 }
- { wp: nightly, ms: 'no', php: '8.1', phpunit: 9 }
- { wp: latest, ms: 'yes', php: '8.1', phpunit: 9 }
- { wp: nightly, ms: 'yes', php: '8.1', phpunit: 9 }
services:
mysql:
image: mariadb:latest@sha256:2403cc521634162f743b5179ff5b35520daf72df5d9e7e397192af685d9148fd
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/phpcs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,13 @@ jobs:
codestyle:
name: Run code style check
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[ci skip]')"
steps:
- name: Check out source code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Set up PHP
uses: shivammathur/setup-php@a36e1e52ff4a1c9e9c9be31551ee4712a6cb6bd0 # 2.27.1
with:
php-version: "8.0"
coverage: none
env:
fail-fast: 'true'
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/static-code-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,10 @@ concurrency:
permissions:
contents: read

env:
PHP_VERSION: "8.0"

jobs:
psalm:
runs-on: ubuntu-latest
name: Psalm
if: "!contains(github.event.head_commit.message, '[ci skip]')"
steps:
- name: Check out source code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
Expand All @@ -27,7 +23,6 @@ jobs:
uses: shivammathur/setup-php@a36e1e52ff4a1c9e9c9be31551ee4712a6cb6bd0 # 2.27.1
with:
coverage: none
php-version: ${{ env.PHP_VERSION }}

- name: Install dependencies
uses: ramsey/composer-install@83af392bf5f031813d25e6fe4cd626cdba9a2df6 # tag=2.2.0
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
]
},
"require": {
"php": "^7.4.0 || ^8.0.0",
"php": "^8.1.0",
"composer/installers": "^2.0",
"wildwolf/singleton-trait": "^1.0.1"
},
Expand All @@ -32,7 +32,7 @@
"config": {
"sort-packages": true,
"platform": {
"php": "7.4"
"php": "8.1"
},
"allow-plugins": {
"composer/package-versions-deprecated": true,
Expand Down
Loading

0 comments on commit 1efdcaa

Please sign in to comment.