forked from colinmollenhour/Cm_Cache_Backend_Redis
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
706 additions
and
640 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: PHPUnit | ||
|
||
on: | ||
push: | ||
branches: [ "master" ] | ||
pull_request: | ||
branches: [ "master" ] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
test: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
services: | ||
redis: | ||
image: redis | ||
options: >- | ||
--health-cmd "redis-cli ping" | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 5 | ||
ports: | ||
- 6379:6379 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Validate composer.json and composer.lock | ||
run: composer validate --strict | ||
|
||
- name: Cache Composer packages | ||
id: composer-cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: vendor | ||
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-php- | ||
- name: Install dependencies | ||
run: composer install --prefer-dist --no-progress | ||
|
||
- name: Run PHPUnit test suite | ||
run: composer run-script test | ||
|
||
- name: Run PHP CS Fixer | ||
run: composer run-script php-cs-fixer -- --dry-run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
.basedir | ||
vendor | ||
composer.lock | ||
/.php-cs-fixer.cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
/* | ||
* This document has been generated with | ||
* https://mlocati.github.io/php-cs-fixer-configurator/#version:3.4.0|configurator | ||
* you can change this configuration by importing this file. | ||
*/ | ||
$config = new PhpCsFixer\Config(); | ||
return $config | ||
->setRules([ | ||
'@PSR12' => true, | ||
]) | ||
->setFinder( | ||
PhpCsFixer\Finder::create() | ||
->in([ | ||
'Cm/', | ||
'tests/', | ||
]) | ||
->name('*.php') | ||
->ignoreDotFiles(true) | ||
->ignoreVCS(true) | ||
); |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
FROM php:8.1-alpine | ||
COPY --from=composer /usr/bin/composer /usr/bin/composer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule Credis
updated
20 files
+3 −1 | .gitignore | |
+33 −12 | .travis.yml | |
+60 −18 | Client.php | |
+5 −1 | Cluster.php | |
+33 −0 | README.markdown | |
+1 −2 | Sentinel.php | |
+26 −0 | phpunit_local.sh | |
+32 −0 | testenv/docker-compose.yml | |
+24 −0 | testenv/env/php-5.5/Dockerfile | |
+24 −0 | testenv/env/php-5.6/Dockerfile | |
+24 −0 | testenv/env/php-7.0/Dockerfile | |
+24 −0 | testenv/env/php-7.1/Dockerfile | |
+24 −0 | testenv/env/php-7.2/Dockerfile | |
+24 −0 | testenv/env/php-7.3/Dockerfile | |
+3 −3 | tests/CredisClusterTest.php | |
+39 −10 | tests/CredisSentinelTest.php | |
+1 −1 | tests/CredisStandaloneClusterTest.php | |
+1 −1 | tests/CredisStandaloneTest.php | |
+76 −11 | tests/CredisTest.php | |
+22 −18 | tests/CredisTestCommon.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Cm/Cache/Backend/* app/code/community/Cm/Cache/Backend/ | ||
Cm/Cache/Backend/Redis.php app/code/community/Cm/Cache/Backend/Redis.php |
Oops, something went wrong.