Skip to content

Commit

Permalink
Merge pull request #231 from netglue/PHP-8.2
Browse files Browse the repository at this point in the history
Remove support for PHP 7.4, Add support for PHP 8.2
  • Loading branch information
gsteel authored Nov 4, 2022
2 parents 19eded6 + 81e38b5 commit 1ec84b1
Show file tree
Hide file tree
Showing 67 changed files with 604 additions and 1,137 deletions.
51 changes: 31 additions & 20 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,39 @@ on:
tags:

jobs:
matrix:
name: Generate job matrix
ci:
uses: laminas/workflow-continuous-integration/.github/workflows/[email protected]
coverage:
name: PHPUnit Coverage
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.matrix.outputs.matrix }}
steps:
- name: Gather CI configuration
id: matrix
uses: laminas/laminas-ci-matrix-action@v1
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
php-version: 8.0
extensions: pcov
coverage: pcov
ini-values: pcov.enabled=1
- uses: "ramsey/[email protected]"
- run: php ./vendor/bin/phpunit --coverage-clover=coverage.xml
- uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
fail_ci_if_error: false

composer-require-checker:
name: "Check for missing dependencies"
runs-on: "ubuntu-latest"

qa:
name: QA Checks
needs: [matrix]
runs-on: ${{ matrix.operatingSystem }}
strategy:
fail-fast: false
matrix: ${{ fromJSON(needs.matrix.outputs.matrix) }}
steps:
- name: ${{ matrix.name }}
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
PRISMIC_REPO: ${{ secrets.PRISMIC_REPO }}
uses: laminas/laminas-continuous-integration-action@v1
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
php-version: 8.1
- uses: "ramsey/[email protected]"
with:
job: ${{ matrix.job }}
dependency-versions: "highest"
- run: composer global config bin-dir /usr/local/bin
- run: composer global require -W maglnet/composer-require-checker
- run: /usr/local/bin/composer-require-checker check
19 changes: 0 additions & 19 deletions .laminas-ci.json

This file was deleted.

13 changes: 0 additions & 13 deletions .laminas-ci/post-run.sh

This file was deleted.

16 changes: 0 additions & 16 deletions composer-require-checker.json

This file was deleted.

12 changes: 5 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"composer/package-versions-deprecated": true
},
"platform": {
"php": "7.4.99"
"php": "8.0.99"
}
},
"autoload": {
Expand All @@ -34,27 +34,25 @@
}
},
"require": {
"php": "^7.4 || ~8.0 || ~8.1",
"php": "~8.0 || ~8.1 || ~8.2",
"ext-json": "*",
"laminas/laminas-escaper": "^2.9",
"php-http/discovery": "^1.14.1",
"psr/cache": "^1.0.0 || ^2.0.0",
"psr/cache": "^1.0.0 || ^2.0.0 || ^3.0.0",
"psr/http-client-implementation": "*",
"psr/http-client": "^1.0",
"psr/http-factory": "^1.0",
"psr/http-message": "^1.0",
"symfony/polyfill-php80": "^1.17"
"psr/http-message": "^1.0"
},
"require-dev": {
"ext-curl": "*",
"doctrine/coding-standard": "^10.0",
"laminas/laminas-diactoros": "^2.17.0",
"maglnet/composer-require-checker": "^3.8.0",
"php-http/cache-plugin": "^1.7.5",
"php-http/curl-client": "^2.2.1",
"php-http/mock-client": "^1.5.0",
"phpunit/phpunit": "^9.5.26",
"psalm/plugin-phpunit": "^0.17.0",
"psalm/plugin-phpunit": "^0.18.3",
"roave/security-advisories": "dev-latest",
"squizlabs/php_codesniffer": "^3.7.1",
"symfony/cache": "^5.4.15 || ^6.0.0",
Expand Down
Loading

0 comments on commit 1ec84b1

Please sign in to comment.