Skip to content

Commit

Permalink
Updated for PHP 8.2, 8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
SakiTakamachi committed Dec 9, 2024
1 parent b38b8ed commit 71f2ebd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 20 deletions.
20 changes: 2 additions & 18 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ jobs:
fail-fast: false
matrix:
php-version:
- '8.4'
- '8.5'
- '8.2'
- '8.3'

steps:
- name: git checkout
Expand All @@ -40,23 +40,7 @@ jobs:
run: composer install -n --prefer-dist

- name: Run tests
if: matrix.php-version == '8.5'
run: |
./vendor/bin/phpunit \
--configuration phpunit.xml.dist \
--testsuite=unit
- name: Run tests with coverage
if: matrix.php-version == '8.4'
run: |
XDEBUG_MODE=coverage ./vendor/bin/phpunit \
--configuration phpunit.xml.dist \
--testsuite=unit \
--coverage-clover ./coverage.xml
- uses: codecov/codecov-action@v5
if: matrix.php-version == '8.4'
with:
files: ./coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@
}
],
"require": {
"php": ">=8.4",
"ext-bcmath": "*"
"php": "^8.3|^8.2",
"ext-bcmath": "*",
"saki/bcmath-number-polyfill": "^1.1"
},
"require-dev": {
"phpunit/phpunit": "^11.4"
Expand Down

0 comments on commit 71f2ebd

Please sign in to comment.