Skip to content

Commit

Permalink
add client for predis
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Lemay committed Aug 29, 2024
1 parent 8a0232b commit 3e719cc
Show file tree
Hide file tree
Showing 5 changed files with 428 additions and 7 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,10 @@ jobs:
run: vendor/bin/php-cs-fixer fix src --dry-run --diff --no-ansi
- name: Run phpstan
run: vendor/bin/phpstan analyse src --level=5
- name: Run tests
run: XDEBUG_MODE=coverage vendor/bin/phpunit
- name: Run tests with redis extension
run: XDEBUG_MODE=coverage REDIS_CLIENT=redis vendor/bin/phpunit
- name: Run tests with predis dependency
run: XDEBUG_MODE=coverage REDIS_CLIENT=predis vendor/bin/phpunit
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
Expand Down
5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,12 @@
},
"require": {
"php": ">=8.2",
"ext-redis": "*",
"ext-json": "*"
},
"suggest": {
"ext-redis": "To use the native Redis extension (phpredis)",
"predis/predis": "To use Predis as a Redis PHP client"
},
"require-dev": {
"phpunit/phpunit": "^11.0",
"friendsofphp/php-cs-fixer": "^3.57",
Expand Down
Loading

0 comments on commit 3e719cc

Please sign in to comment.