Skip to content

Commit

Permalink
Set minimal PHP version to 8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jasny committed Aug 9, 2023
1 parent 2095cfc commit 7504a16
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,17 @@ jobs:
fail-fast: false
matrix:
include:
- php: 7.3
- php: 7.4
coverage: '--coverage --coverage-xml'
- php: 8.0
- php: 8.1
- php: 8.2
coverage: '--coverage --coverage-xml'
name: PHP ${{ matrix.php }}

steps:
- uses: actions/checkout@v2

with:
fetch-depth: 10

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
Expand All @@ -39,7 +41,7 @@ jobs:

- name: Upload coverage to Scrutinizer
if: ${{ matrix.coverage }}
run: >
wget https://scrutinizer-ci.com/ocular.phar -O "/tmp/ocular.phar" &&
php "/tmp/ocular.phar" code-coverage:upload --format=php-clover tests/_output/coverage.xml
uses: sudo-bot/action-scrutinizer@latest
with:
cli-args: "--format=php-clover build/logs/clover.xml --revision=${{ github.event.pull_request.head.sha || github.sha }}"

2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"source": "https://github.com/jasny/sso"
},
"require": {
"php": "^8.2",
"php": "^8.0",
"ext-json": "*",
"jasny/immutable": "^2.1",
"psr/simple-cache": "^1.0",
Expand Down

0 comments on commit 7504a16

Please sign in to comment.