-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
37 changed files
with
909 additions
and
224 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
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,67 @@ | ||
name: "Run Tests - Cache Drivers" | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
cache: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
services: | ||
redis: | ||
image: redis | ||
ports: | ||
- 6379/tcp | ||
options: --health-cmd="redis-cli ping" --health-interval=10s --health-timeout=5s --health-retries=3 | ||
|
||
strategy: | ||
fail-fast: false | ||
|
||
name: Cache Drivers | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: 8.2 | ||
extensions: curl, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, iconv, memcache | ||
coverage: none | ||
|
||
- name: Install dependencies | ||
run: | | ||
composer require "predis/predis" --no-interaction --no-update | ||
composer update --prefer-stable --prefer-dist --no-interaction | ||
- name: Execute tests - memcached cache driver | ||
run: | | ||
vendor/bin/phpunit | ||
env: | ||
CACHE_DRIVER: memcached | ||
|
||
- name: Execute tests - redis cache driver | ||
run: | | ||
vendor/bin/phpunit | ||
env: | ||
CACHE_DRIVER: redis | ||
REDIS_PORT: ${{ job.services.redis.ports['6379'] }} | ||
|
||
- name: Execute tests - database cache driver | ||
run: | | ||
vendor/bin/phpunit | ||
env: | ||
CACHE_DRIVER: database | ||
|
||
- name: Execute tests - file cache driver | ||
run: | | ||
vendor/bin/phpunit | ||
env: | ||
CACHE_DRIVER: file | ||
|
||
- name: Execute tests - array cache driver | ||
run: | | ||
vendor/bin/phpunit | ||
env: | ||
CACHE_DRIVER: array |
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
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.