Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update workflow actions * Update dependencies to composer.json * Update psalm.xml * Add memcached extension to mutation action * Make exception classes final * Add bootstrap to phpunit.xml.dist * Add Memcached class suppression for Psalm * Add configuration * Cleanup Memcached class * Cleanup tests * Fix constructor docBlock to Memcached * Add description to readme * Fix code style for StyleCI * Add memcached service in actions * Remove windows from build action * Fix memcached service * Remove PHP 8.0 from build action * Return PHP 8.0 to build action * Fix tests for PHP 8.0 * Return the tests back * Remove "--ignore-platform-reqs" flag for PHP 8.0 * Remove split versions composer update dependencies * Add memcached service to .scrutinizer.yml * Fix .scrutinizer.yml * Replace memcached on service in actions * Fix memcached service in build action * Fix memcached service port * Add self-hosted memcached service * Return memcached on service in actions * Change runner to memcached on service * Return action- memcached * Fix tests for PHP 8.0 * Replace `createMock` on `createPartialMock` for PHP 8.0 * Refactoring Memcached::deleteMultiple() * Fix code for StyleCI * Return Memcached::deleteMultiple() behavior * Fix tests
- Loading branch information
Showing
18 changed files
with
668 additions
and
537 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
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,63 @@ | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- "master" | ||
|
||
name: mutation test | ||
|
||
jobs: | ||
mutation: | ||
name: PHP ${{ matrix.php }}-${{ matrix.os }} | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
env: | ||
extensions: memcached | ||
|
||
strategy: | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
|
||
php: | ||
- "7.4" | ||
|
||
steps: | ||
- name: Install service memcached | ||
uses: niden/actions-memcached@v7 | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v2.3.4 | ||
|
||
- name: Install PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: "${{ matrix.php }}" | ||
ini-values: memory_limit=-1 | ||
coverage: "pcov" | ||
tools: composer:v2, pecl | ||
|
||
- name: Determine composer cache directory | ||
run: echo "COMPOSER_CACHE_DIR=$(composer config cache-dir)" >> $GITHUB_ENV | ||
|
||
- name: Cache dependencies installed with composer | ||
uses: actions/cache@v2 | ||
with: | ||
path: ${{ env.COMPOSER_CACHE_DIR }} | ||
key: php${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }} | ||
restore-keys: | | ||
php${{ matrix.php }}-composer- | ||
- name: Update composer | ||
run: composer self-update | ||
|
||
- name: Install dependencies with composer | ||
run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi | ||
|
||
- name: Run infection | ||
run: | | ||
git fetch --depth=1 origin $GITHUB_BASE_REF | ||
vendor/bin/roave-infection-static-analysis-plugin -j2 --git-diff-filter=A --git-diff-base=origin/$GITHUB_BASE_REF --logger-github --ignore-msi-with-no-mutations --only-covered | ||
env: | ||
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Memcached Change Log | ||
# Yii Memcached Change Log | ||
|
||
## 1.0.0 under development | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
use Yiisoft\Cache\Memcached\Memcached; | ||
|
||
/* @var $params array */ | ||
|
||
return [ | ||
Memcached::class => [ | ||
'__class' => Memcached::class, | ||
'__construct()' => [ | ||
$params['yiisoft/cache-memcached']['memcached']['persistentId'], | ||
$params['yiisoft/cache-memcached']['memcached']['servers'], | ||
], | ||
], | ||
]; |
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,20 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
use Yiisoft\Cache\Memcached\Memcached; | ||
|
||
return [ | ||
'yiisoft/cache-memcached' => [ | ||
'memcached' => [ | ||
'persistentId' => '', | ||
'servers' => [ | ||
[ | ||
'host' => Memcached::DEFAULT_SERVER_HOST, | ||
'port' => Memcached::DEFAULT_SERVER_PORT, | ||
'weight' => Memcached::DEFAULT_SERVER_WEIGHT, | ||
], | ||
], | ||
], | ||
], | ||
]; |
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
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
Oops, something went wrong.