Skip to content

Commit

Permalink
Require PHP 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMorel committed Aug 1, 2023
1 parent f352919 commit aa12196
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.1"
php-version: "8.2"

- name: Install composer dependencies
uses: "ramsey/composer-install@v1"
Expand All @@ -31,7 +31,6 @@ jobs:
strategy:
matrix:
php-version:
- "8.0"
- "8.1"
- "8.2"
- "8.3"
Expand All @@ -57,15 +56,15 @@ jobs:
run: vendor/bin/phpunit
env:
CALCULATOR: ${{ matrix.calculator }}
if: ${{ matrix.php-version != '8.0' }}
if: ${{ matrix.php-version != '8.2' }}

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

- name: Run PHPUnit with bcscale()
run: vendor/bin/phpunit
Expand All @@ -78,4 +77,4 @@ jobs:
run: vendor/bin/php-coveralls --coverage_clover=build/logs/clover.xml -v
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: ${{ matrix.php-version == '8.0' }}
if: ${{ matrix.php-version == '8.2' }}
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
],
"license": "MIT",
"require": {
"php": "^8.0"
"php": "^8.1"
},
"require-dev": {
"phpunit/phpunit": "^9.0",
Expand Down

0 comments on commit aa12196

Please sign in to comment.