support PHP 8.3 #57
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: push | |
jobs: | |
test: | |
name: Run tests in PHP ${{ matrix.php-version }} | |
runs-on: ubuntu-latest | |
container: 1maa/php-dev:${{ matrix.php-version }} | |
strategy: | |
fail-fast: false | |
matrix: | |
php-version: ["8.0", "8.1", "8.2", "8.3"] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 2 | |
- name: Install dependencies | |
run: composer install | |
- name: Run Linter | |
run: vendor/bin/php-cs-fixer fix -v --dry-run | |
- name: Execute test suite | |
run: composer test | |
- name: Send coverage to Scrutinizer CI | |
if: ${{ always() && matrix.php-version == '8.2' }} | |
run: | | |
git config --global --add safe.directory /__w/JsonRpc/JsonRpc | |
php vendor/bin/ocular code-coverage:upload --format=php-clover build/coverage.xml | |