Skip to content

Commit

Permalink
🧱 Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
nbourguig committed May 12, 2024
1 parent 00743f5 commit 2f091cc
Show file tree
Hide file tree
Showing 4 changed files with 297 additions and 10 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,5 @@ jobs:
composer require "illuminate/console:${{ matrix.laravel }}" "illuminate/filesystem:${{ matrix.laravel }}" "illuminate/support:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --prefer-dist --no-interaction --no-suggest
- name: Run Unit Tests
run: vendor/bin/phpunit --testsuite Unit

- name: Run Feature Tests
run: vendor/bin/phpunit --testsuite Feature
- name: Run Tests
run: vendor/bin/phpunit
2 changes: 1 addition & 1 deletion .phpunit.cache/test-results
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version":1,"defects":{"Nikaia\\TranslationSheet\\Test\\Feature\\ExcludePatternsTest::it_excludes_correctly_the_specified_patterns":7},"times":{"Nikaia\\TranslationSheet\\Test\\Feature\\ExcludePatternsTest::it_excludes_correctly_the_specified_patterns":0.012,"Nikaia\\TranslationSheet\\Test\\Feature\\ExcludePatternsTest::it_excludes_correctly_the_specified_patterns_for_push":6.582}}
{"version":1,"defects":{"Nikaia\\TranslationSheet\\Test\\Feature\\ExcludePatternsTest::it_excludes_correctly_the_specified_patterns":7},"times":{"Nikaia\\TranslationSheet\\Test\\Feature\\ExcludePatternsTest::it_excludes_correctly_the_specified_patterns":0.013,"Nikaia\\TranslationSheet\\Test\\Feature\\ExcludePatternsTest::it_excludes_correctly_the_specified_patterns_for_push":7.151,"Nikaia\\TranslationSheet\\Test\\Feature\\SimpleWorkflowTest::it_executes_simple_workflow_correctly":6.824,"Nikaia\\TranslationSheet\\Test\\Feature\\SimpleWorkflowTest::it_executes_simple_workflow_correctly_with_one_extra_sheet":11.917,"Nikaia\\TranslationSheet\\Test\\Feature\\SimpleWorkflowTest::it_executes_simple_workflow_correctly_with_two_extra_sheets":13.755,"Nikaia\\TranslationSheet\\Test\\Unit\\ItemTest::it_create_items_from_array":0.005,"Nikaia\\TranslationSheet\\Test\\Unit\\PullerTest::it_pulls_the_translations":0.009,"Nikaia\\TranslationSheet\\Test\\Unit\\PusherTest::it_pushes_translations":0.005,"Nikaia\\TranslationSheet\\Test\\Unit\\ReaderTest::it_know_how_to_check_vendor_directory":0.004,"Nikaia\\TranslationSheet\\Test\\Unit\\ReaderTest::it_loads_languages_from_temp_folder":0.004,"Nikaia\\TranslationSheet\\Test\\Unit\\ReaderTest::it_loads_json_languages_from_temp_folder":0.004,"Nikaia\\TranslationSheet\\Test\\Unit\\ReaderTest::it_reads_translations_correctly":0.004,"Nikaia\\TranslationSheet\\Test\\Unit\\ReaderTest::it_scans_all_directories_even_after_encountring_vendor":0.005,"Nikaia\\TranslationSheet\\Test\\Unit\\ReaderTest::it_scans_json_files":0.003,"Nikaia\\TranslationSheet\\Test\\Unit\\ReaderTest::it_scans_both_json_and_php_files":0.004,"Nikaia\\TranslationSheet\\Test\\Unit\\ReaderTest::it_scans_specific_extra_sheet_lang_files":0.003,"Nikaia\\TranslationSheet\\Test\\Unit\\SpreadsheetTest::it_returns_correct_id":0.003,"Nikaia\\TranslationSheet\\Test\\Unit\\SpreadsheetTest::it_return_correct_locales_count":0.003,"Nikaia\\TranslationSheet\\Test\\Unit\\SpreadsheetTest::it_sets_locales":0.003,"Nikaia\\TranslationSheet\\Test\\Unit\\SpreadsheetTest::is_sets_translations":0.002,"Nikaia\\TranslationSheet\\Test\\Unit\\SpreadsheetTest::is_returns_translations_count":0.002,"Nikaia\\TranslationSheet\\Test\\Unit\\SpreadsheetTest::it_return_corrected_header":0.002,"Nikaia\\TranslationSheet\\Test\\Unit\\SpreadsheetTest::it_return_corrected_header_columns_count":0.002,"Nikaia\\TranslationSheet\\Test\\Unit\\SpreadsheetTest::it_return_corrected_camelized_header":0.003,"Nikaia\\TranslationSheet\\Test\\Unit\\SpreadsheetTest::it_returns_correct_header_count":0.002,"Nikaia\\TranslationSheet\\Test\\Unit\\SpreadsheetTest::it_return_styles":0.002,"Nikaia\\TranslationSheet\\Test\\Unit\\SpreadsheetTest::it_returns_empty_sheet_coordinates":0.003,"Nikaia\\TranslationSheet\\Test\\Unit\\SpreadsheetTest::it_returns_sheet_coordinates":0.002,"Nikaia\\TranslationSheet\\Test\\Unit\\SpreadsheetTest::it_returns_api_set_with_spreadsheet_id":0.003,"Nikaia\\TranslationSheet\\Test\\Unit\\SpreadsheetTest::it_returns_spreadsheet_url":0.002,"Nikaia\\TranslationSheet\\Test\\Unit\\TransformerTest::it_transforms_read_translations_correctly":0.003,"Nikaia\\TranslationSheet\\Test\\Unit\\TranslationsSheetTest::it_returns_coordinates":0.004,"Nikaia\\TranslationSheet\\Test\\Unit\\TranslationsSheetTest::it_setup_sheet_correctly":0.006,"Nikaia\\TranslationSheet\\Test\\Unit\\TranslationsSheetTest::it_write_translations_correctly":0.003,"Nikaia\\TranslationSheet\\Test\\Unit\\TranslationsSheetTest::it_read_translations":0.002,"Nikaia\\TranslationSheet\\Test\\Unit\\TranslationsSheetTest::it_style_document":0.003,"Nikaia\\TranslationSheet\\Test\\Unit\\TranslationsSheetTest::it_prepare_for_write":0.003,"Nikaia\\TranslationSheet\\Test\\Unit\\TranslationsSheetTest::it_lock_translations":0.003,"Nikaia\\TranslationSheet\\Test\\Unit\\TranslationsSheetTest::it_unlock_translations":0.003,"Nikaia\\TranslationSheet\\Test\\Unit\\TranslationsSheetTest::it_return_lock_status":0.002,"Nikaia\\TranslationSheet\\Test\\Unit\\WriterTest::it_writes_correctly_translations":0.004,"Nikaia\\TranslationSheet\\Test\\Unit\\WriterTest::it_writes_correctly_extra_sheet_translations":0.005}}
149 changes: 147 additions & 2 deletions tests/fixtures/basepaths/00-simple/resources/lang/en/validation.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,154 @@

return [
"accepted" => "The :attribute must be accepted.",
"accepted_if" => "The :attribute field must be accepted when :other is :value.",
"active_url" => "The :attribute is not a valid URL.",
"after" => "The :attribute field must be a date after :date.",
"after_or_equal" => "The :attribute field must be a date after or equal to :date.",
"alpha" => "The :attribute field must only contain letters.",
"alpha_dash" => "The :attribute field must only contain letters, numbers, dashes, and underscores.",
"alpha_num" => "The :attribute field must only contain letters and numbers.",
"array" => "The :attribute field must be an array.",
"ascii" => "The :attribute field must only contain single-byte alphanumeric characters and symbols.",
"before" => "The :attribute field must be a date before :date.",
"before_or_equal" => "The :attribute field must be a date before or equal to :date.",
"between" => [
"array" => "The :attribute field must have between :min and :max items.",
"file" => "The :attribute must be between :min and :max kilobytes.",
"numeric" => "The :attribute must be between :min and :max."
]
"numeric" => "The :attribute must be between :min and :max.",
"string" => "The :attribute field must be between :min and :max characters."
],
"boolean" => "The :attribute field must be true or false.",
"can" => "The :attribute field contains an unauthorized value.",
"confirmed" => "The :attribute field confirmation does not match.",
"current_password" => "The password is incorrect.",
"custom" => [
"attribute-name" => [
"rule-name" => "custom-message"
]
],
"date" => "The :attribute field must be a valid date.",
"date_equals" => "The :attribute field must be a date equal to :date.",
"date_format" => "The :attribute field must match the format :format.",
"decimal" => "The :attribute field must have :decimal decimal places.",
"declined" => "The :attribute field must be declined.",
"declined_if" => "The :attribute field must be declined when :other is :value.",
"different" => "The :attribute field and :other must be different.",
"digits" => "The :attribute field must be :digits digits.",
"digits_between" => "The :attribute field must be between :min and :max digits.",
"dimensions" => "The :attribute field has invalid image dimensions.",
"distinct" => "The :attribute field has a duplicate value.",
"doesnt_end_with" => "The :attribute field must not end with one of the following: :values.",
"doesnt_start_with" => "The :attribute field must not start with one of the following: :values.",
"email" => "The :attribute field must be a valid email address.",
"ends_with" => "The :attribute field must end with one of the following: :values.",
"enum" => "The selected :attribute is invalid.",
"exists" => "The selected :attribute is invalid.",
"extensions" => "The :attribute field must have one of the following extensions: :values.",
"file" => "The :attribute field must be a file.",
"filled" => "The :attribute field must have a value.",
"gt" => [
"array" => "The :attribute field must have more than :value items.",
"file" => "The :attribute field must be greater than :value kilobytes.",
"numeric" => "The :attribute field must be greater than :value.",
"string" => "The :attribute field must be greater than :value characters."
],
"gte" => [
"array" => "The :attribute field must have :value items or more.",
"file" => "The :attribute field must be greater than or equal to :value kilobytes.",
"numeric" => "The :attribute field must be greater than or equal to :value.",
"string" => "The :attribute field must be greater than or equal to :value characters."
],
"hex_color" => "The :attribute field must be a valid hexadecimal color.",
"image" => "The :attribute field must be an image.",
"in" => "The selected :attribute is invalid.",
"in_array" => "The :attribute field must exist in :other.",
"integer" => "The :attribute field must be an integer.",
"ip" => "The :attribute field must be a valid IP address.",
"ipv4" => "The :attribute field must be a valid IPv4 address.",
"ipv6" => "The :attribute field must be a valid IPv6 address.",
"json" => "The :attribute field must be a valid JSON string.",
"list" => "The :attribute field must be a list.",
"lowercase" => "The :attribute field must be lowercase.",
"lt" => [
"array" => "The :attribute field must have less than :value items.",
"file" => "The :attribute field must be less than :value kilobytes.",
"numeric" => "The :attribute field must be less than :value.",
"string" => "The :attribute field must be less than :value characters."
],
"lte" => [
"array" => "The :attribute field must not have more than :value items.",
"file" => "The :attribute field must be less than or equal to :value kilobytes.",
"numeric" => "The :attribute field must be less than or equal to :value.",
"string" => "The :attribute field must be less than or equal to :value characters."
],
"mac_address" => "The :attribute field must be a valid MAC address.",
"max" => [
"array" => "The :attribute field must not have more than :max items.",
"file" => "The :attribute field must not be greater than :max kilobytes.",
"numeric" => "The :attribute field must not be greater than :max.",
"string" => "The :attribute field must not be greater than :max characters."
],
"max_digits" => "The :attribute field must not have more than :max digits.",
"mimes" => "The :attribute field must be a file of type: :values.",
"mimetypes" => "The :attribute field must be a file of type: :values.",
"min" => [
"array" => "The :attribute field must have at least :min items.",
"file" => "The :attribute field must be at least :min kilobytes.",
"numeric" => "The :attribute field must be at least :min.",
"string" => "The :attribute field must be at least :min characters."
],
"min_digits" => "The :attribute field must have at least :min digits.",
"missing" => "The :attribute field must be missing.",
"missing_if" => "The :attribute field must be missing when :other is :value.",
"missing_unless" => "The :attribute field must be missing unless :other is :value.",
"missing_with" => "The :attribute field must be missing when :values is present.",
"missing_with_all" => "The :attribute field must be missing when :values are present.",
"multiple_of" => "The :attribute field must be a multiple of :value.",
"not_in" => "The selected :attribute is invalid.",
"not_regex" => "The :attribute field format is invalid.",
"numeric" => "The :attribute field must be a number.",
"password" => [
"letters" => "The :attribute field must contain at least one letter.",
"mixed" => "The :attribute field must contain at least one uppercase and one lowercase letter.",
"numbers" => "The :attribute field must contain at least one number.",
"symbols" => "The :attribute field must contain at least one symbol.",
"uncompromised" => "The given :attribute has appeared in a data leak. Please choose a different :attribute."
],
"present" => "The :attribute field must be present.",
"present_if" => "The :attribute field must be present when :other is :value.",
"present_unless" => "The :attribute field must be present unless :other is :value.",
"present_with" => "The :attribute field must be present when :values is present.",
"present_with_all" => "The :attribute field must be present when :values are present.",
"prohibited" => "The :attribute field is prohibited.",
"prohibited_if" => "The :attribute field is prohibited when :other is :value.",
"prohibited_unless" => "The :attribute field is prohibited unless :other is in :values.",
"prohibits" => "The :attribute field prohibits :other from being present.",
"regex" => "The :attribute field format is invalid.",
"required" => "The :attribute field is required.",
"required_array_keys" => "The :attribute field must contain entries for: :values.",
"required_if" => "The :attribute field is required when :other is :value.",
"required_if_accepted" => "The :attribute field is required when :other is accepted.",
"required_if_declined" => "The :attribute field is required when :other is declined.",
"required_unless" => "The :attribute field is required unless :other is in :values.",
"required_with" => "The :attribute field is required when :values is present.",
"required_with_all" => "The :attribute field is required when :values are present.",
"required_without" => "The :attribute field is required when :values is not present.",
"required_without_all" => "The :attribute field is required when none of :values are present.",
"same" => "The :attribute field must match :other.",
"size" => [
"array" => "The :attribute field must contain :size items.",
"file" => "The :attribute field must be :size kilobytes.",
"numeric" => "The :attribute field must be :size.",
"string" => "The :attribute field must be :size characters."
],
"starts_with" => "The :attribute field must start with one of the following: :values.",
"string" => "The :attribute field must be a string.",
"timezone" => "The :attribute field must be a valid timezone.",
"ulid" => "The :attribute field must be a valid ULID.",
"unique" => "The :attribute has already been taken.",
"uploaded" => "The :attribute failed to upload.",
"uppercase" => "The :attribute field must be uppercase.",
"url" => "The :attribute field must be a valid URL.",
"uuid" => "The :attribute field must be a valid UUID."
];
149 changes: 147 additions & 2 deletions tests/fixtures/basepaths/00-simple/resources/lang/fr/validation.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,154 @@

return [
"accepted" => "The :attribute must be accepted.",
"accepted_if" => "",
"active_url" => "The :attribute is not a valid URL.",
"after" => "",
"after_or_equal" => "",
"alpha" => "",
"alpha_dash" => "",
"alpha_num" => "",
"array" => "",
"ascii" => "",
"before" => "",
"before_or_equal" => "",
"between" => [
"array" => "",
"file" => "The :attribute must be between :min and :max kilobytes.",
"numeric" => "The :attribute must be between :min and :max."
]
"numeric" => "The :attribute must be between :min and :max.",
"string" => ""
],
"boolean" => "",
"can" => "",
"confirmed" => "",
"current_password" => "",
"custom" => [
"attribute-name" => [
"rule-name" => ""
]
],
"date" => "",
"date_equals" => "",
"date_format" => "",
"decimal" => "",
"declined" => "",
"declined_if" => "",
"different" => "",
"digits" => "",
"digits_between" => "",
"dimensions" => "",
"distinct" => "",
"doesnt_end_with" => "",
"doesnt_start_with" => "",
"email" => "",
"ends_with" => "",
"enum" => "",
"exists" => "",
"extensions" => "",
"file" => "",
"filled" => "",
"gt" => [
"array" => "",
"file" => "",
"numeric" => "",
"string" => ""
],
"gte" => [
"array" => "",
"file" => "",
"numeric" => "",
"string" => ""
],
"hex_color" => "",
"image" => "",
"in" => "",
"in_array" => "",
"integer" => "",
"ip" => "",
"ipv4" => "",
"ipv6" => "",
"json" => "",
"list" => "",
"lowercase" => "",
"lt" => [
"array" => "",
"file" => "",
"numeric" => "",
"string" => ""
],
"lte" => [
"array" => "",
"file" => "",
"numeric" => "",
"string" => ""
],
"mac_address" => "",
"max" => [
"array" => "",
"file" => "",
"numeric" => "",
"string" => ""
],
"max_digits" => "",
"mimes" => "",
"mimetypes" => "",
"min" => [
"array" => "",
"file" => "",
"numeric" => "",
"string" => ""
],
"min_digits" => "",
"missing" => "",
"missing_if" => "",
"missing_unless" => "",
"missing_with" => "",
"missing_with_all" => "",
"multiple_of" => "",
"not_in" => "",
"not_regex" => "",
"numeric" => "",
"password" => [
"letters" => "",
"mixed" => "",
"numbers" => "",
"symbols" => "",
"uncompromised" => ""
],
"present" => "",
"present_if" => "",
"present_unless" => "",
"present_with" => "",
"present_with_all" => "",
"prohibited" => "",
"prohibited_if" => "",
"prohibited_unless" => "",
"prohibits" => "",
"regex" => "",
"required" => "",
"required_array_keys" => "",
"required_if" => "",
"required_if_accepted" => "",
"required_if_declined" => "",
"required_unless" => "",
"required_with" => "",
"required_with_all" => "",
"required_without" => "",
"required_without_all" => "",
"same" => "",
"size" => [
"array" => "",
"file" => "",
"numeric" => "",
"string" => ""
],
"starts_with" => "",
"string" => "",
"timezone" => "",
"ulid" => "",
"unique" => "",
"uploaded" => "",
"uppercase" => "",
"url" => "",
"uuid" => ""
];

0 comments on commit 2f091cc

Please sign in to comment.