Skip to content

Commit

Permalink
Require PHP 7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMorel committed Feb 23, 2023
1 parent b2f6433 commit 4fd7ae6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,14 @@ jobs:
strategy:
matrix:
php-version:
- "7.1"
- "7.2"
- "7.3"
- "7.4"
- "8.0"
- "8.1"
- "8.2"
deps:
- "highest"
include:
- php-version: "7.1"
- php-version: "7.4"
deps: "lowest"

steps:
Expand All @@ -61,16 +58,16 @@ jobs:

- name: Run PHPUnit
run: vendor/bin/phpunit
if: ${{ matrix.php-version != '8.1' }}
if: ${{ matrix.php-version != '8.2' }}

- name: Run PHPUnit with coverage
run: |
mkdir -p mkdir -p build/logs
vendor/bin/phpunit --coverage-clover build/logs/clover.xml
if: ${{ matrix.php-version == '8.1' }}
if: ${{ matrix.php-version == '8.2' }}

- name: Upload coverage report to Coveralls
run: vendor/bin/php-coveralls --coverage_clover=build/logs/clover.xml -v
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: ${{ matrix.php-version == '8.1' }}
if: ${{ matrix.php-version == '8.2' }}
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
],
"license": "MIT",
"require": {
"php": "^7.1 || ^8.0",
"php": "^7.4 || ^8.0",
"ext-json": "*",
"giggsey/libphonenumber-for-php": "^7.0 || ^8.0"
},
"require-dev": {
"phpunit/phpunit": "^7.0 || ^8.0 || ^9.0",
"phpunit/phpunit": "^9.0",
"php-coveralls/php-coveralls": "^2.0",
"vimeo/psalm": "5.7.5"
},
Expand Down

0 comments on commit 4fd7ae6

Please sign in to comment.