-
Notifications
You must be signed in to change notification settings - Fork 11.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[10.x] Test Improvements #49338
Merged
Merged
[10.x] Test Improvements #49338
Changes from all commits
Commits
Show all changes
59 commits
Select commit
Hold shift + click to select a range
fa8e075
wip
crynobone c14880b
wip
crynobone c6b61de
Apply fixes from StyleCI
StyleCIBot e349edc
wip
crynobone f1baf91
wip
crynobone a99f32d
wip
crynobone f498e40
wip
crynobone 30e9efb
wip
crynobone 081ee36
wip
crynobone aff3815
Apply fixes from StyleCI
StyleCIBot d50ed3e
wip
crynobone a8920d9
wip
crynobone dacd534
wip
crynobone aafb5d5
wip
crynobone 36e648c
wip
crynobone 13f5237
wip
crynobone 651b776
wip
crynobone 90dabb7
wip
crynobone 8f7050c
wip
crynobone a898cec
wip
crynobone bd54d8f
wip
crynobone 446386c
Merge remote-tracking branch 'upstream/10.x' into queue-tests-ci
crynobone d2a5822
wip
crynobone c11e51b
wip
crynobone e4d6d1c
wip
crynobone f63892f
wip
crynobone 56027b2
wip
crynobone a2a13cb
wip
crynobone 3f2065a
wip
crynobone 8b128e0
wip
crynobone 65ad2b8
wip
crynobone aaba355
wip
crynobone c6310b7
wip
crynobone b6a6e84
wip
crynobone 7b47bbc
wip
crynobone bc917ab
wip
crynobone 70cdbd4
wip
crynobone 235aeb0
wip
crynobone 49a8ff6
Apply fixes from StyleCI
StyleCIBot 43588f8
wip
crynobone b653969
Merge remote-tracking branch 'upstream/queue-tests-ci' into queue-tes…
crynobone 3d9e779
wip
crynobone 5e19026
wip
crynobone d3e9d2d
wip
crynobone 862954a
wip
crynobone a4f3b3f
wip
crynobone 4abfc6f
wip
crynobone 37a2dca
wip
crynobone 04a66bd
wip
crynobone 51ac0a6
wip
crynobone 9e989a5
wip
crynobone a188e9f
wip
crynobone 2aa17e7
Merge remote-tracking branch 'upstream/10.x' into queue-tests-ci
crynobone 07e1a14
wip
crynobone c2facc6
wip
crynobone 89312b9
wip
crynobone 9c75dfe
Merge remote-tracking branch 'upstream/10.x' into queue-tests-ci
crynobone 179d85a
wip
crynobone 2aafb76
wip
crynobone File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,160 @@ | ||
name: queues | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- '*.x' | ||
pull_request: | ||
|
||
jobs: | ||
sync: | ||
runs-on: ubuntu-22.04 | ||
|
||
strategy: | ||
fail-fast: true | ||
|
||
name: Sync Driver | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: 8.1 | ||
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_mysql, :php-psr | ||
tools: composer:v2 | ||
coverage: none | ||
|
||
- name: Install dependencies | ||
uses: nick-fields/retry@v2 | ||
with: | ||
timeout_minutes: 5 | ||
max_attempts: 5 | ||
command: composer update --prefer-stable --prefer-dist --no-interaction --no-progress | ||
|
||
- name: Execute tests | ||
run: vendor/bin/phpunit tests/Integration/Queue | ||
env: | ||
QUEUE_CONNECTION: sync | ||
|
||
database: | ||
runs-on: ubuntu-22.04 | ||
|
||
strategy: | ||
fail-fast: true | ||
|
||
name: Database Driver | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: 8.1 | ||
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_mysql, :php-psr | ||
tools: composer:v2 | ||
coverage: none | ||
|
||
- name: Install dependencies | ||
uses: nick-fields/retry@v2 | ||
with: | ||
timeout_minutes: 5 | ||
max_attempts: 5 | ||
command: composer update --prefer-stable --prefer-dist --no-interaction --no-progress | ||
|
||
- name: Execute tests | ||
run: vendor/bin/phpunit tests/Integration/Queue | ||
env: | ||
DB_CONNECTION: testing | ||
QUEUE_CONNECTION: database | ||
|
||
redis: | ||
runs-on: ubuntu-22.04 | ||
|
||
services: | ||
redis: | ||
image: redis:7.0 | ||
ports: | ||
- 6379:6379 | ||
options: --entrypoint redis-server | ||
|
||
strategy: | ||
fail-fast: true | ||
|
||
name: Redis Driver | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: 8.1 | ||
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_mysql, :php-psr | ||
tools: composer:v2 | ||
coverage: none | ||
|
||
- name: Install dependencies | ||
uses: nick-fields/retry@v2 | ||
with: | ||
timeout_minutes: 5 | ||
max_attempts: 5 | ||
command: composer update --prefer-stable --prefer-dist --no-interaction --no-progress | ||
|
||
- name: Execute tests | ||
run: vendor/bin/phpunit tests/Integration/Queue | ||
env: | ||
QUEUE_CONNECTION: redis | ||
|
||
beanstalkd: | ||
runs-on: ubuntu-22.04 | ||
|
||
name: Beanstalkd Driver | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: actions/checkout@v3 | ||
- name: Download & Extract beanstalkd | ||
run: curl -L https://github.com/beanstalkd/beanstalkd/archive/refs/tags/v1.13.tar.gz | tar xz | ||
- name: Make beanstalkd | ||
run: make | ||
working-directory: beanstalkd-1.13 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: 8.1 | ||
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_mysql, :php-psr | ||
tools: composer:v2 | ||
coverage: none | ||
|
||
- name: Install dependencies | ||
uses: nick-fields/retry@v2 | ||
with: | ||
timeout_minutes: 5 | ||
max_attempts: 5 | ||
command: composer update --prefer-stable --prefer-dist --no-interaction --no-progress | ||
|
||
- name: Daemonize beanstalkd | ||
run: ./beanstalkd-1.13/beanstalkd & | ||
|
||
- name: Execute tests | ||
run: vendor/bin/phpunit tests/Integration/Queue | ||
env: | ||
QUEUE_CONNECTION: beanstalkd |
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Orchestra\Testbench\TestCase::tearDown()
already callsMockery::close()