Skip to content

Commit

Permalink
Merge pull request #10 from ronanchilvers/php8.0
Browse files Browse the repository at this point in the history
Update for PHP 8.0 only support
  • Loading branch information
ronanchilvers authored Nov 25, 2022
2 parents 440b5be + be1f0d4 commit d725dc1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 14 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ jobs:
fail-fast: true
matrix:
operating-system: ['ubuntu-latest']
php-versions: ['7.3', '7.4']
php-versions: ['8.0', '8.1']
experimental: [false]
include:
- php-versions: '8.0'
- php-versions: '8.2'
operating-system: 'ubuntu-latest'
experimental: true
name: PHP ${{ matrix.php-versions }}
steps:
- name: Checkout codebase
uses: actions/checkout@v2
with:
fetch-depth: 1
fetch-depth: 2
- name: Get Composer Cache Directory
id: composer-cache
run: |
Expand All @@ -40,12 +40,8 @@ jobs:
run: php --version
- name: Check Composer Version
run: composer --version
- name: Composer Dependencies (7.x)
- name: Composer Dependencies
run: composer install --no-interaction --no-suggest --no-progress --prefer-dist --optimize-autoloader
if: matrix.php-versions != '8.0'
- name: Composer Dependencies (8.0)
run: composer install --no-interaction --no-suggest --no-progress --prefer-dist --optimize-autoloader --ignore-platform-reqs
if: matrix.php-versions == '8.0'
- name: Prepare build directory
run: |
[ ! -d build ] && (echo "creating build directory" && mkdir build)
Expand All @@ -54,7 +50,6 @@ jobs:
- name: Run Testsuite
run: vendor/bin/phpunit -c phpunit.xml.dist --coverage-clover build/clover.xml
- name: Upload coverage data
if: matrix.php-versions == '7.4'
run: |
wget https://scrutinizer-ci.com/ocular.phar
php ocular.phar code-coverage:upload --format=php-clover build/clover.xml
composer global require scrutinizer/ocular
~/.composer/vendor/bin/ocular code-coverage:upload --format=php-clover build/clover.xml
2 changes: 1 addition & 1 deletion .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ checks:
build:
environment:
php:
version: 7.4.19
version: 8.0.24
nodes:
analysis:
tests:
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"clancats/hydrahon": "^1.1",
"evenement/evenement": "^3.0",
"nesbot/carbon": "^2.0",
"php": "^7.3||^8.0",
"ronanchilvers/utility": "^1.0"
"php": "^8.0",
"ronanchilvers/utility": "^2.0"
},
"require-dev": {
"php-parallel-lint/php-parallel-lint": "^1.3",
Expand Down

0 comments on commit d725dc1

Please sign in to comment.