This repository has been archived by the owner on Feb 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 640
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #453 from beyondcode/refactor/pubsub-replication-t…
…ests [refactor/tests] Added tests for Redis PubSub replication
- Loading branch information
Showing
26 changed files
with
838 additions
and
206 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 |
---|---|---|
|
@@ -24,6 +24,12 @@ jobs: | |
- name: Checkout code | ||
uses: actions/checkout@v1 | ||
|
||
- name: Setup Redis | ||
uses: supercharge/[email protected] | ||
with: | ||
redis-version: 6 | ||
if: ${{ matrix.os == 'ubuntu-latest' }} | ||
|
||
- name: Cache dependencies | ||
uses: actions/cache@v1 | ||
with: | ||
|
@@ -35,16 +41,25 @@ jobs: | |
with: | ||
php-version: ${{ matrix.php }} | ||
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick | ||
coverage: pcov | ||
coverage: xdebug | ||
|
||
- name: Install dependencies | ||
run: | | ||
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update | ||
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest | ||
- name: Execute tests | ||
run: vendor/bin/phpunit --coverage-text --coverage-clover=coverage.xml | ||
- name: Execute tests with Local driver | ||
run: vendor/bin/phpunit --coverage-text --coverage-clover=coverage_local.xml | ||
env: | ||
REPLICATION_DRIVER: local | ||
|
||
- name: Execute tests with Redis driver | ||
run: vendor/bin/phpunit --coverage-text --coverage-clover=coverage_redis.xml | ||
if: ${{ matrix.os == 'ubuntu-latest' }} | ||
env: | ||
REPLICATION_DRIVER: redis | ||
|
||
- uses: codecov/codecov-action@v1 | ||
with: | ||
fail_ci_if_error: false | ||
file: '*.xml' |
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.