Skip to content

Commit

Permalink
ci: Fix deps + check on lowest deps
Browse files Browse the repository at this point in the history
  • Loading branch information
aszenz committed Jan 28, 2024
1 parent 5213958 commit eb7b229
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/ci.yml
Expand Up @@ -20,14 +20,6 @@ jobs:
dependencies:
- "lowest"
- "highest"
exclude:
# Exclude lowest deps version as they don't support newer php versions
- dependencies: "lowest"
php-version: "8.3"
- dependencies: "lowest"
php-version: "8.2"
- dependencies: "lowest"
php-version: "8.1"

steps:
- name: "Checkout"
Expand All @@ -48,6 +40,9 @@ jobs:
run: "vendor/bin/phpunit -c phpunit.xml.dist"

- name: Upload coverage results to Coveralls
# skip php-coversalls for lowest deps
# it fails on lowest depedencies because old versions of guzzle doesn't work well with newer php versions
if: "${{ 'highest' == matrix.dependencies }}"
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
Expand Down
11 changes: 3 additions & 8 deletions composer.json
Expand Up @@ -11,11 +11,11 @@
"require": {
"php": "^7.4 || ^8.0",
"doctrine/dbal": "^3.0",
"doctrine/inflector": "^1.0 || ^2.0"
"doctrine/inflector": "^1.4 || ^2.0"
},
"require-dev": {
"phpunit/phpunit": "^10.2",
"php-coveralls/php-coveralls": "^2.0.0"
"php-coveralls/php-coveralls": "^2.7.0"
},
"autoload": {
"psr-4": {
Expand All @@ -28,10 +28,5 @@
}
},
"minimum-stability": "dev",
"prefer-stable": true,
"extra": {
"branch-alias": {
"dev-master": "1.4.x-dev"
}
}
"prefer-stable": true
}

0 comments on commit eb7b229

Please sign in to comment.