Skip to content

Commit

Permalink
Drop support for PHP < 7.4 (#128)
Browse files Browse the repository at this point in the history
* upgrade dev packages
* upgrade github actions
  • Loading branch information
ilario-pierbattista authored Nov 11, 2023
1 parent 1cf9334 commit c99c44b
Show file tree
Hide file tree
Showing 7 changed files with 67 additions and 1,284 deletions.
37 changes: 3 additions & 34 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,37 +27,6 @@ jobs:
strategy:
matrix:
include:
- php: 7.2
mongo-ext: 1.3.0
mongo-img: 3.4
symfony: '3.4.*'
- php: 7.2
mongo-ext: 1.3.0
mongo-img: 3.4
symfony: '4.3.*'
- php: 7.2
mongo-ext: 1.3.0
mongo-img: 3.4
symfony: '4.4.*'
- php: 7.2
mongo-ext: 1.3.0
mongo-img: 3.4
symfony: '5.*'
- php: 7.2
mongo-ext: 1.5.3
mongo-img: 4.0
- php: 7.2
mongo-ext: 1.6.0
mongo-img: 4.2
- php: 7.2
mongo-ext: 1.8.0
mongo-img: 4.4
- php: 7.2
mongo-ext: 1.9.0
mongo-img: 4.4
- php: 7.3
mongo-ext: 1.5.3
mongo-img: 4.0
- php: 7.4
mongo-ext: 1.6.0
mongo-img: 4.2
Expand All @@ -70,7 +39,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
Expand All @@ -83,12 +52,12 @@ jobs:
run: composer require "symfony/symfony:${{ matrix.symfony }}" --no-update
if: matrix.symfony
- name: Install dependencies
uses: "ramsey/composer-install@v1"
uses: ramsey/composer-install@v2
- name: Await a bit for Mongo to spin up...
run: sleep 10
- name: Run tests
run: bin/phpunit --coverage-clover=build/coverage-report.xml
- name: Upload code coverage
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v3
with:
file: build/coverage-report.xml
4 changes: 2 additions & 2 deletions .github/workflows/static-analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
- name: Install dependencies
uses: "ramsey/composer-install@v1"
uses: ramsey/composer-install@v2
- run: ${{ matrix.script }}
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Removed
* Removed support for PHP < 7.4

## [1.5.0] (2022-01-06)
### Added
Expand Down
13 changes: 7 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
}
],
"require": {
"php": "^7.2 || ^8.0",
"ext-mongodb": "^1.1.5",
"mongodb/mongodb": "^1.0",
"php": "^7.4 || ^8.0",
"ext-mongodb": "^1.6",
"mongodb/mongodb": "^1.5",
"symfony/framework-bundle": "^3.4 || ^4.3 || ^5.0 || ^6.0"
},
"require-dev": {
Expand All @@ -31,9 +31,10 @@
"phpunit/phpunit": "^8.5.14",
"symfony/phpunit-bridge": "^6.0",
"facile-it/facile-coding-standard": "^0.4.0",
"phpstan/phpstan": "^0.12.88",
"phpstan/extension-installer": "^1.1",
"jangregor/phpstan-prophecy": "^0.8.1"
"phpstan/phpstan": "1.10.41",
"phpstan/extension-installer": "1.3.1",
"jangregor/phpstan-prophecy": "1.0.0",
"phpspec/prophecy": "^1.17"
},
"minimum-stability": "stable",
"suggest": {
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: "3.1"

services:
php:
image: ilariopierbattista/mongodb-bundle-php:php-7.2-mongoext-1.3.0-20201227
image: ilariopierbattista/mongodb-bundle-php:php-7.4-mongoext-1.6.0-20231111
volumes:
- ./:/home/user-dev/project
tty: true
Expand Down
Loading

0 comments on commit c99c44b

Please sign in to comment.