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

Update terminal width for GitHub actions and adjust schema examples #24

Merged
merged 9 commits into from
Mar 14, 2024

Commits on Mar 14, 2024

  1. Update terminal width for GitHub actions and adjust schema examples

    This commit adjusts the terminal width configuration in ErrorSuite.php specifically for GitHub actions by adding a condition to set the maximum width to 150. Furthermore, the order of "str_ends_with" and "str_starts_with" properties in full.yml schema example file have been switched. Relevant changes are also echoed in the README.md file.
    Denis Smet committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    a91cc5b View commit details
    Browse the repository at this point in the history
  2. Rearrange string properties in schema examples

    The order of "str_ends_with" and "str_starts_with" properties in both full.json and full.php has been swapped for consistency and clarity. The README.md documentation has been updated to reflect these modifications in the schema examples.
    Denis Smet committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    d321083 View commit details
    Browse the repository at this point in the history
  3. Update usage syntax in Github Actions test and README

    The usage syntax for csv-blueprint has been updated in the GithubActionsTest.php and README.md file to specify 'master' branch. This ensures that users always fetch the latest version when using the csv-blueprint action.
    Denis Smet committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    8031c90 View commit details
    Browse the repository at this point in the history
  4. Refine terminal width determination and add Docker environment check

    The terminal width determination code in ErrorSuite.php has been updated to include a check for a Docker environment. Additionally, utility methods for checking the Docker environment and Github Actions have been added in Utils.php for reusability. These changes will help refine terminal width estimates and enhance code organization.
    Denis Smet committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    c8d292e View commit details
    Browse the repository at this point in the history
  5. Refine terminal width determination and add Docker environment check

    The terminal width determination code in ErrorSuite.php has been updated to consider Docker environments. A new method, autoDetectTerminalWidth(), has been added for this functionality. Furthermore, in Utils.php, the isGithubActions() now includes a Docker environment check ensuring the functionality considers both contexts. This enhances reusability and precision in terminal width estimation.
    Denis Smet committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    db657c2 View commit details
    Browse the repository at this point in the history
  6. Refactor string validation rules and terminal width determination

    String validation rules 'str_starts_with' and 'str_ends_with' were renamed to 'starts_with' and 'ends_with' for brevity and consistency. Also, a new utilitarian method named 'autoDetectTerminalWidth' was introduced to accurately estimate terminal width based on the execution environment. The code now takes into account wider terminal widths in Docker and GitHub actions environments.
    Denis Smet committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    ec96c1d View commit details
    Browse the repository at this point in the history
  7. Increase terminal width detection for Docker

    The maximum auto-detected terminal width is adjusted for Docker containers from 120 characters to 140 characters. This considers the possibility of wider terminals in Docker environments, ensuring that the terminal output better accommodates for additional space.
    Denis Smet committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    b40827d View commit details
    Browse the repository at this point in the history
  8. Fixes

    Denis Smet committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    1883bd9 View commit details
    Browse the repository at this point in the history
  9. terminal width auto-detection optimization

    Removed the assignment of the terminal width auto-detection to a variable in ErrorSuite.php and instead directly used it in the limit calculation. To improve clarity and maintain cleanliness of the code, comments related to terminal width auto-detection fall back have been moved to inside the autoDetectTerminalWidth function in Utils.php.
    Denis Smet committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    8d19227 View commit details
    Browse the repository at this point in the history