Skip to content

Commit

Permalink
Minimal PHP version is 7.4 (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
SmetDenis committed Jun 10, 2022
1 parent 4366765 commit 3fddfc4
Show file tree
Hide file tree
Showing 51 changed files with 942 additions and 698 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ jobs:
JBZOO_COMPOSER_UPDATE_FLAGS: ${{ matrix.composer_flags }}
strategy:
matrix:
php-version: [ 7.2, 7.3, 7.4 ]
build-way: ["update"]
php-version: [ 7.4, 8.0, 8.1 ]
build-way: [ "update" ]
composer_flags: [ "--prefer-lowest", "" ]
include:
- php-version: 8.0
Expand All @@ -60,18 +60,16 @@ jobs:
run: make build ${{ matrix.build-way }} --no-print-directory

- name: 🧪 PHPUnit Tests
if: ${{ !(matrix.build-way == 'build' && matrix.php-version == 8.0) }}
run: make test --no-print-directory

- name: Uploading coverage to coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: make report-coveralls --no-print-directory
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: make report-coveralls --no-print-directory || true

- name: Codecov Report
uses: codecov/codecov-action@v1
continue-on-error: true
if: ${{ matrix.php-version == 7.4 || matrix.php-version == 8.0 }}
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: '*.xml'
Expand All @@ -84,7 +82,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php-version: [ 7.2, 7.3, 7.4 ]
php-version: [ 7.4, 8.0, 8.1 ]
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand All @@ -96,6 +94,7 @@ jobs:
with:
php-version: ${{ matrix.php-version }}
tools: composer
extensions: ast

- name: Build the Project
run: make update --no-print-directory
Expand All @@ -109,9 +108,9 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php-version: [ 7.2, 7.3, 7.4 ]
php-version: [ 7.4, 8.0, 8.1 ]
experimental: [ false ]
build-way: ["build", "update build"]
build-way: [ "build", "update build" ]
include:
- php-version: 8.0
experimental: true
Expand Down
15 changes: 6 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,24 +38,21 @@
],

"require" : {
"php" : ">=7.2",
"php" : ">=7.4",
"ext-dom" : "*",
"ext-simplexml" : "*",
"ext-hash" : "*",

"jbzoo/data" : "^4.4.0",
"jbzoo/utils" : "^4.5.5",
"jbzoo/cli" : "^1.0.0",
"jbzoo/markdown" : "^1.1.1",
"jbzoo/data" : "^5.0",
"jbzoo/utils" : "^5.0",
"jbzoo/cli" : "^2.0",
"jbzoo/markdown" : "^1.2",

"symfony/console" : ">=4.4"
},

"require-dev" : {
"jbzoo/toolbox-dev" : "^3.3.1",
"jbzoo/mermaid-php" : "^2.3.2",
"jbzoo/codestyle" : "^3.3.4",
"jbzoo/phpunit" : "^4.13.1",
"jbzoo/toolbox-dev" : "^4.0.1",
"roave/security-advisories" : "dev-master"
},

Expand Down
Loading

0 comments on commit 3fddfc4

Please sign in to comment.