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

Validation Project v2 #471

Merged
merged 59 commits into from
Dec 31, 2024
Merged

Validation Project v2 #471

merged 59 commits into from
Dec 31, 2024

Conversation

GreemDev
Copy link
Member

Original PR had issues in the CI when building.

Refactor of the Validation System for more ease of use in the future.
The project now builds a standalone executable and executes it before the main project is built or published.
Since it is now a standalone executable we are also able to use .NET Core features as we are no longer locked to netstandard.

The project currently includes 1 task, LocalesValidationTask, that will check if the locales.json file has any of the following issues:

  • The json is invalid.
  • The json has locales with missing languages.
  • The json has locales with langauges that are just duplicates of the en_US field.

If the project is built or published locally it will also fix any missing languages or duplicate fields.

LotP1 and others added 14 commits December 26, 2024 23:42
if running on git it will now fail if the file contains CRLF line endings and tell the user to run a local build to fix it.
isGitRunner is now a variable passed to all tasks.
Validation project can now accept more arguments, only the first argument is used at the moment.
Execute is no longer static, and you can now pass extra data to the task constructor if needed.
@github-actions github-actions bot added gui Affects the Avalonia UI or translations. infra Updates to dependencies labels Dec 30, 2024
@GreemDev GreemDev merged commit d0a344d into Ryubing:master Dec 31, 2024
10 checks passed
@GreemDev GreemDev mentioned this pull request Jan 16, 2025
SomeoneIsWorking pushed a commit to SomeoneIsWorking/Greem that referenced this pull request Feb 1, 2025
Original PR had issues in the CI when building.

> Refactor of the Validation System for more ease of use in the future.
The project now builds a standalone executable and executes it before
the main project is built or published.
Since it is now a standalone executable we are also able to use .NET
Core features as we are no longer locked to netstandard.

> The project currently includes 1 task, LocalesValidationTask, that
will check if the locales.json file has any of the following issues:
>   - The json is invalid.
>   - The json has locales with missing languages.
> - The json has locales with langauges that are just duplicates of the
en_US field.

> If the project is built or published locally it will also fix any
missing languages or duplicate fields.

---------

Co-authored-by: LotP1 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gui Affects the Avalonia UI or translations. infra Updates to dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants