Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop'
Browse files Browse the repository at this point in the history
# Conflicts:
#	readme.txt
  • Loading branch information
tillkruss committed Jul 18, 2022
2 parents 425a252 + 165e57b commit 36efcb6
Show file tree
Hide file tree
Showing 40 changed files with 897 additions and 2,986 deletions.
4 changes: 1 addition & 3 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@ includes/ui/* linguist-language=HTML+PHP
/.github export-ignore
/.wordpress-org export-ignore
/bin export-ignore
/docker export-ignore
.editorconfig export-ignore
.gitattributes export-ignore
.gitignore export-ignore
composer.json export-ignore
docker-compose.yml export-ignore
phpcs.xml export-ignore
phpunit.xml.dist export-ignore
readme.txt export-ignore
readme.txt export-ignore
32 changes: 14 additions & 18 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
name: Run Tests

on:
push:
pull_request:
push: null
pull_request: null

jobs:
single-instance:

instance:
name: Testing (PHP ${{ matrix.php }}; Instance ${{ matrix.redis }})
runs-on: ubuntu-latest
timeout-minutes: 5
Expand Down Expand Up @@ -36,14 +37,11 @@ jobs:
--health-timeout 5s
--health-retries 5
strategy:
fail-fast: false
matrix:
php: [ '7.1', '7.2', '7.3', '7.4', '8.0', '8.1' ]
composer: [ 'composer' ]
redis: [ '4.0.14', '5.0.12', '6.2.6' ]
wordpress: [ 'latest' ]
php: ['7.2', '7.3', '7.4', '8.0', '8.1']
redis: ['3.2.12', '6.2.6', '7.0.3']

steps:
- name: Checkout
Expand All @@ -54,12 +52,12 @@ jobs:
with:
php-version: ${{ matrix.php }}
extensions: msgpack, igbinary, redis-5.3.7
tools: ${{ matrix.composer }}

- name: Set up WordPress and WordPress Test Library
uses: sjinks/setup-wordpress-test-library@master
with:
version: ${{ matrix.wordpress }}
version: latest
cache_prefix: redis-cache-${{ github.ref }}

- name: Install PHP Dependencies
uses: ramsey/composer-install@v2
Expand All @@ -71,7 +69,7 @@ jobs:
- name: Run test suite
run: ./vendor/bin/phpunit

cluster-instance:
cluster:
name: Testing (PHP ${{ matrix.php }}; Cluster ${{ matrix.redis }})
runs-on: ubuntu-latest
timeout-minutes: 5
Expand All @@ -93,7 +91,7 @@ jobs:
MYSQL_DATABASE: wordpress_test

redis:
image: grokzen/redis-cluster
image: grokzen/redis-cluster:${{ matrix.redis }}
ports:
- '6379-6384:6379-6384'
options: >-
Expand All @@ -112,10 +110,8 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [ '7.1', '7.2', '7.3', '7.4', '8.0', '8.1' ]
composer: [ 'composer' ]
redis: [ '5.0.12', '6.2.1' ]
wordpress: [ 'latest' ]
php: ['7.2', '7.3', '7.4', '8.0', '8.1']
redis: ['5.0.12', '6.2.1']

steps:
- name: Checkout
Expand All @@ -126,12 +122,12 @@ jobs:
with:
php-version: ${{ matrix.php }}
extensions: msgpack, igbinary, redis-5.3.7
tools: ${{ matrix.composer }}

- name: Set up WordPress and WordPress Test Library
uses: sjinks/setup-wordpress-test-library@master
with:
version: ${{ matrix.wordpress }}
version: latest
cache_prefix: redis-cache-${{ github.ref }}

- name: Install PHP Dependencies
uses: ramsey/composer-install@v2
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
/.wp-test
/.phpunit.cache
/docker/apf.php
/php-tools
/vendor
/reports
.phpunit.result.cache
composer.lock
config.sh
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 2.1.1

- Bumped PHP requirement to 7.2
- Renamed `WP_REDIS_DIR` to `WP_REDIS_PLUGIN_DIR`
- Fixed rare fatal error in diagnostics
- Allow Predis v1.1 Composer installs
- Support using `WP_REDIS_CLUSTER` string

## 2.1.0

- Bumped PHP requirement to 7.0
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ To see a list of all available WP-CLI commands, please see the [WP CLI commands

### Development

Head over to the [Docker Development wiki page](https://github.com/rhubarbgroup/redis-cache/wiki/Docker-Development) to spin up various Redis setups.
Head over to the [Local development wiki page](https://github.com/rhubarbgroup/redis-cache/wiki/Local-Development) for more information.
43 changes: 0 additions & 43 deletions bin/includes/flags-arguments.sh

This file was deleted.

8 changes: 0 additions & 8 deletions bin/includes/flags-declares.sh

This file was deleted.

108 changes: 0 additions & 108 deletions bin/includes/functions.sh

This file was deleted.

59 changes: 0 additions & 59 deletions bin/run-tests.sh

This file was deleted.

Loading

0 comments on commit 36efcb6

Please sign in to comment.