Skip to content
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

Add compatibility for laravel 9.* #28

Merged
merged 2 commits into from
Apr 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,16 @@ jobs:
strategy:
matrix:
php: [7.4, 8.0]
laravel: [8.*]
laravel: [8.*, 9.*]
dependency-version: [prefer-stable, prefer-lowest]
include:
- laravel: 8.*
testbench: 6.23
- laravel: 9.*
testbench: ^7.0
exclude:
- laravel: 9.*
php: 7.4

name: CI - PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - Testbench ${{ matrix.testbench }} (${{ matrix.dependency-version }})

Expand Down
2 changes: 1 addition & 1 deletion .php-cs-fixer.cache
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"php":"8.1.0","version":"3.4.0","indent":" ","lineEnding":"\n","rules":{"blank_line_after_namespace":true,"braces":true,"class_definition":true,"constant_case":true,"elseif":true,"function_declaration":true,"indentation_type":true,"line_ending":true,"lowercase_keywords":true,"method_argument_space":{"on_multiline":"ensure_fully_multiline","keep_multiple_spaces_after_comma":true},"no_break_comment":true,"no_closing_tag":true,"no_space_around_double_colon":true,"no_spaces_after_function_name":true,"no_spaces_inside_parenthesis":true,"no_trailing_whitespace":true,"no_trailing_whitespace_in_comment":true,"single_blank_line_at_eof":true,"single_class_element_per_statement":{"elements":["property"]},"single_import_per_statement":true,"single_line_after_imports":true,"switch_case_semicolon_to_colon":true,"switch_case_space":true,"visibility_required":{"elements":["method","property"]},"encoding":true,"full_opening_tag":true,"array_syntax":{"syntax":"short"},"ordered_imports":{"sort_algorithm":"alpha"},"no_unused_imports":true,"not_operator_with_successor_space":true,"trailing_comma_in_multiline":true,"phpdoc_scalar":true,"unary_operator_spaces":true,"binary_operator_spaces":true,"blank_line_before_statement":{"statements":["break","continue","declare","return","throw","try"]},"phpdoc_single_line_var_spacing":true,"phpdoc_var_without_name":true,"class_attributes_separation":{"elements":{"method":"one"}},"single_trait_insert_per_statement":true},"hashes":{"src\/Concerns\/Trackable.php":3364606779,"src\/Concerns\/HasUuid.php":1930490168,"src\/Models\/TrackedJob.php":3136593851,"src\/Providers\/TrackableJobsServiceProvider.php":2560918162,"src\/Jobs\/Middleware\/TrackedJobMiddleware.php":2955596716,"src\/Exceptions\/TrackableJobsException.php":1144700486,"src\/Exceptions\/UuidNotConfiguredException.php":3146722709,"src\/Contracts\/TrackableJobContract.php":2935988567,"tests\/TestCase.php":685679823,"tests\/Traits\/TrackableTraitTest.php":1964098066,"tests\/UserUuid.php":1159074694,"tests\/TrackedJobTest.php":1555282873,"tests\/User.php":2247486027,"tests\/Jobs\/FailingJob.php":3038703863,"tests\/Jobs\/TestJobUuid.php":3851618454,"tests\/Jobs\/TestJob.php":3923482017,"tests\/TrackedJobUsingUuidTest.php":9994249}}
{"php":"8.1.3","version":"3.7.0","indent":" ","lineEnding":"\n","rules":{"blank_line_after_namespace":true,"braces":true,"class_definition":true,"constant_case":true,"elseif":true,"function_declaration":true,"indentation_type":true,"line_ending":true,"lowercase_keywords":true,"method_argument_space":{"on_multiline":"ensure_fully_multiline","keep_multiple_spaces_after_comma":true},"no_break_comment":true,"no_closing_tag":true,"no_space_around_double_colon":true,"no_spaces_after_function_name":true,"no_spaces_inside_parenthesis":true,"no_trailing_whitespace":true,"no_trailing_whitespace_in_comment":true,"single_blank_line_at_eof":true,"single_class_element_per_statement":{"elements":["property"]},"single_import_per_statement":true,"single_line_after_imports":true,"switch_case_semicolon_to_colon":true,"switch_case_space":true,"visibility_required":{"elements":["method","property"]},"encoding":true,"full_opening_tag":true,"array_syntax":{"syntax":"short"},"ordered_imports":{"sort_algorithm":"alpha"},"no_unused_imports":true,"not_operator_with_successor_space":true,"trailing_comma_in_multiline":true,"phpdoc_scalar":true,"unary_operator_spaces":true,"binary_operator_spaces":true,"blank_line_before_statement":{"statements":["break","continue","declare","return","throw","try"]},"phpdoc_single_line_var_spacing":true,"phpdoc_var_without_name":true,"class_attributes_separation":{"elements":{"method":"one"}},"single_trait_insert_per_statement":true},"hashes":{"src\/Exceptions\/UuidNotConfiguredException.php":3146722709,"src\/Exceptions\/TrackableJobsException.php":1144700486,"src\/Models\/TrackedJob.php":3136593851,"src\/Providers\/TrackableJobsServiceProvider.php":2560918162,"src\/Jobs\/Middleware\/TrackedJobMiddleware.php":2955596716,"src\/Contracts\/TrackableJobContract.php":2935988567,"src\/Concerns\/Trackable.php":3364606779,"src\/Concerns\/HasUuid.php":1930490168,"tests\/TrackedJobTest.php":1555282873,"tests\/User.php":2247486027,"tests\/TestCase.php":685679823,"tests\/UserUuid.php":1159074694,"tests\/Traits\/TrackableTraitTest.php":2464151435,"tests\/Jobs\/TestJob.php":3923482017,"tests\/Jobs\/FailingJob.php":3038703863,"tests\/Jobs\/TestJobUuid.php":3851618454,"tests\/TrackedJobUsingUuidTest.php":9994249}}
2 changes: 1 addition & 1 deletion .phpunit.result.cache
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version":1,"defects":{"Junges\\TrackableJobs\\Tests\\TrackedJobTest::test_it_stores_jobs_using_uuid":4,"Junges\\TrackableJobs\\Tests\\TrackedJobTest::test_it_can_get_the_correct_morph":4,"Junges\\TrackableJobs\\Tests\\TrackedJobTest::test_it_can_get_the_correct_morph_for_failed_jobs":4,"Junges\\TrackableJobs\\Tests\\TrackedJobTest::test_it_can_get_the_correct_job_duration":4,"Junges\\TrackableJobs\\Tests\\Traits\\TrackableTraitTest::test_job_executes_without_fail":4,"Junges\\TrackableJobs\\Tests\\Traits\\TrackableTraitTest::test_it_tracks_failed_jobs":4,"Junges\\TrackableJobs\\Tests\\Traits\\TrackableTraitTest::test_it_can_get_the_job_output":4,"Junges\\TrackableJobs\\Tests\\Traits\\TrackableTraitTest::test_it_can_get_the_output_for_failed_jobs":4,"Junges\\TrackableJobs\\Tests\\TrackedJobUsingUuidTest::test_it_stores_jobs_using_uuid":4,"Junges\\TrackableJobs\\Tests\\TrackedJobUsingUuidTest::test_get_duration_returns_an_empty_string_if_the_job_has_not_started":4,"Junges\\TrackableJobs\\Tests\\TrackedJobUsingUuidTest::test_it_can_find_tracked_jobs_by_uuid":4,"Junges\\TrackableJobs\\Tests\\TrackedJobTest::test_it_throws_exception_if_finding_by_uuid":4,"Junges\\TrackableJobs\\Tests\\TrackedJobTest::test_it_can_prune_models":3,"Junges\\TrackableJobs\\Tests\\TrackedJobUsingUuidTest::test_it_stores_the_model_uuid":4,"Junges\\TrackableJobs\\Tests\\TrackedJobTest::test_it_will_not_prune_if_prunable_config_is_null":3},"times":{"Junges\\TrackableJobs\\Tests\\TrackedJobTest::test_it_can_get_the_correct_morph":1.583,"Junges\\TrackableJobs\\Tests\\TrackedJobTest::test_it_can_get_the_correct_morph_for_failed_jobs":0.043,"Junges\\TrackableJobs\\Tests\\TrackedJobTest::test_it_can_get_the_correct_job_duration":0.044,"Junges\\TrackableJobs\\Tests\\TrackedJobTest::test_it_stores_jobs_using_uuid":0.016,"Junges\\TrackableJobs\\Tests\\Traits\\TrackableTraitTest::test_job_executes_without_fail":0.043,"Junges\\TrackableJobs\\Tests\\Traits\\TrackableTraitTest::test_it_tracks_failed_jobs":0.04,"Junges\\TrackableJobs\\Tests\\Traits\\TrackableTraitTest::test_it_can_get_the_job_output":0.04,"Junges\\TrackableJobs\\Tests\\Traits\\TrackableTraitTest::test_it_can_get_the_output_for_failed_jobs":0.04,"Junges\\TrackableJobs\\Tests\\TrackedJobUsingUuidTest::test_it_stores_jobs_using_uuid":0.051,"Junges\\TrackableJobs\\Tests\\TrackedJobUsingUuidTest::test_get_duration_returns_an_empty_string_if_the_job_has_not_started":0.033,"Junges\\TrackableJobs\\Tests\\TrackedJobUsingUuidTest::test_it_can_find_tracked_jobs_by_uuid":0.064,"Junges\\TrackableJobs\\Tests\\TrackedJobTest::test_it_can_find_tracked_jobs_by_uuid":0.025,"Junges\\TrackableJobs\\Tests\\TrackedJobTest::test_it_throws_exception_if_finding_by_uuid":0.029,"Junges\\TrackableJobs\\Tests\\TrackedJobUsingUuidTest::test_it_stores_the_model_uuid":0.045,"Junges\\TrackableJobs\\Tests\\TrackedJobTest::test_it_can_prune_models":0.095,"Junges\\TrackableJobs\\Tests\\TrackedJobTest::test_it_will_not_prune_if_prunable_config_is_null":0.119}}
{"version":1,"defects":{"Junges\\TrackableJobs\\Tests\\TrackedJobTest::test_it_stores_jobs_using_uuid":4,"Junges\\TrackableJobs\\Tests\\TrackedJobTest::test_it_can_get_the_correct_morph":4,"Junges\\TrackableJobs\\Tests\\TrackedJobTest::test_it_can_get_the_correct_morph_for_failed_jobs":4,"Junges\\TrackableJobs\\Tests\\TrackedJobTest::test_it_can_get_the_correct_job_duration":4,"Junges\\TrackableJobs\\Tests\\Traits\\TrackableTraitTest::test_job_executes_without_fail":4,"Junges\\TrackableJobs\\Tests\\Traits\\TrackableTraitTest::test_it_tracks_failed_jobs":4,"Junges\\TrackableJobs\\Tests\\Traits\\TrackableTraitTest::test_it_can_get_the_job_output":4,"Junges\\TrackableJobs\\Tests\\Traits\\TrackableTraitTest::test_it_can_get_the_output_for_failed_jobs":4,"Junges\\TrackableJobs\\Tests\\TrackedJobUsingUuidTest::test_it_stores_jobs_using_uuid":4,"Junges\\TrackableJobs\\Tests\\TrackedJobUsingUuidTest::test_get_duration_returns_an_empty_string_if_the_job_has_not_started":4,"Junges\\TrackableJobs\\Tests\\TrackedJobUsingUuidTest::test_it_can_find_tracked_jobs_by_uuid":4,"Junges\\TrackableJobs\\Tests\\TrackedJobTest::test_it_throws_exception_if_finding_by_uuid":4,"Junges\\TrackableJobs\\Tests\\TrackedJobTest::test_it_can_prune_models":4,"Junges\\TrackableJobs\\Tests\\TrackedJobUsingUuidTest::test_it_stores_the_model_uuid":4,"Junges\\TrackableJobs\\Tests\\TrackedJobTest::test_it_will_not_prune_if_prunable_config_is_null":4},"times":{"Junges\\TrackableJobs\\Tests\\TrackedJobTest::test_it_can_get_the_correct_morph":0.25,"Junges\\TrackableJobs\\Tests\\TrackedJobTest::test_it_can_get_the_correct_morph_for_failed_jobs":0.024,"Junges\\TrackableJobs\\Tests\\TrackedJobTest::test_it_can_get_the_correct_job_duration":0.031,"Junges\\TrackableJobs\\Tests\\TrackedJobTest::test_it_stores_jobs_using_uuid":0.016,"Junges\\TrackableJobs\\Tests\\Traits\\TrackableTraitTest::test_job_executes_without_fail":0.023,"Junges\\TrackableJobs\\Tests\\Traits\\TrackableTraitTest::test_it_tracks_failed_jobs":0.022,"Junges\\TrackableJobs\\Tests\\Traits\\TrackableTraitTest::test_it_can_get_the_job_output":0.021,"Junges\\TrackableJobs\\Tests\\Traits\\TrackableTraitTest::test_it_can_get_the_output_for_failed_jobs":0.023,"Junges\\TrackableJobs\\Tests\\TrackedJobUsingUuidTest::test_it_stores_jobs_using_uuid":0.022,"Junges\\TrackableJobs\\Tests\\TrackedJobUsingUuidTest::test_get_duration_returns_an_empty_string_if_the_job_has_not_started":0.015,"Junges\\TrackableJobs\\Tests\\TrackedJobUsingUuidTest::test_it_can_find_tracked_jobs_by_uuid":0.023,"Junges\\TrackableJobs\\Tests\\TrackedJobTest::test_it_can_find_tracked_jobs_by_uuid":0.025,"Junges\\TrackableJobs\\Tests\\TrackedJobTest::test_it_throws_exception_if_finding_by_uuid":0.013,"Junges\\TrackableJobs\\Tests\\TrackedJobUsingUuidTest::test_it_stores_the_model_uuid":0.023,"Junges\\TrackableJobs\\Tests\\TrackedJobTest::test_it_can_prune_models":0.06,"Junges\\TrackableJobs\\Tests\\TrackedJobTest::test_it_will_not_prune_if_prunable_config_is_null":0.023}}
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
],
"require": {
"php": "^7.4||^8.0",
"illuminate/support": "^8.0",
"illuminate/queue": "^8.0",
"illuminate/database": "^8.0"
"illuminate/support": "^8.0 || ^9.0",
"illuminate/queue": "^8.0 || ^9.0",
"illuminate/database": "^8.0 || ^9.0"
},
"require-dev": {
"orchestra/testbench": "^6.0",
"orchestra/testbench": "^6.0 || ^7.0",
"phpunit/phpunit": "^9.5",
"spatie/test-time": "^1.2",
"friendsofphp/php-cs-fixer": "^3.2"
Expand Down
Loading