-
Notifications
You must be signed in to change notification settings - Fork 170
Test against different locales #320
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
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
b4803f0
Create action template
BenjaminMichaelis e248cf5
Change locale to French
BenjaminMichaelis e87f7e6
Update LocalesTest.yml
BenjaminMichaelis 5cfe3ad
Slight updates
BenjaminMichaelis a1533d4
Locale version changes
BenjaminMichaelis d0762d8
Minor Updates
BenjaminMichaelis d7fce5a
Minor Updates
BenjaminMichaelis 39fd340
Try Brazilian Portuguese
BenjaminMichaelis ccf4b52
Change to one task
BenjaminMichaelis 6ddba64
Switch to matrix
BenjaminMichaelis 3d7dcd4
add wsl test environment
BenjaminMichaelis 123d1b8
Update 4.02 to be locale independent
BenjaminMichaelis 0deb58b
Update 2.01 to be locale independent
BenjaminMichaelis 8bd4566
Fixing Locale problems
4b0681b
Fix 2.09 and 15.25
2078e75
Update .github/workflows/LocalesTest.yml
BenjaminMichaelis ae1927b
Update LocalesTest.yml
BenjaminMichaelis 2cdab32
Removed casts on listing 4.7
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 hidden or 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,52 @@ | ||
| name: Test Different Locales | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ v9.0 ] | ||
| pull_request: | ||
| branches: [ v9.0 ] | ||
|
|
||
| jobs: | ||
| set-build-and-test-locale-languages: | ||
| name: Build and Test ${{ matrix.locale-lang }} Locale On Ubuntu | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| locale-lang: ["pt_BR.UTF-8", "fr_FR.UTF-8"] | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - name: Setup dotnet SDK | ||
| uses: actions/setup-dotnet@v2 | ||
| with: | ||
| dotnet-version: | | ||
| 3.1.x | ||
| 5.x | ||
| 6.x | ||
| - name: Get Build Information | ||
| run: | | ||
| pwd | ||
| dotnet --info | ||
| dotnet --version | ||
| - name: SetLocale To ${{ matrix.locale-lang }}, and Build and Test | ||
| run: | | ||
| sudo locale-gen ${{ matrix.locale-lang }} | ||
| sudo localectl set-locale LANG=${{ matrix.locale-lang }} | ||
| LANG=${{ matrix.locale-lang }} | ||
| export LANG=${{ matrix.locale-lang }} | ||
| sudo update-locale LANG=${{ matrix.locale-lang }} | ||
| echo Current Locale Settings: | ||
| echo Run locale to get the information about the current locale and language settings: | ||
| locale | ||
| echo Run locale -a to list all enabled locales: | ||
| locale -a | ||
| echo Run localectl status to find system locale status. | ||
| localectl status | ||
| echo Visual Test | ||
| echo "Printing date" | ||
| date | ||
| echo Restore dependencies | ||
| dotnet restore | ||
| echo Build | ||
| dotnet build --no-restore | ||
| echo Test | ||
| dotnet test --no-build --no-restore --verbosity normal |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,10 @@ | ||
| { | ||
| "version": "1", | ||
| "environments": [ | ||
| { | ||
| "name": "WSL-Ubuntu", | ||
| "type": "wsl", | ||
| "wslDistribution": "Ubuntu" | ||
| } | ||
| ] | ||
| } |
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.
Uh oh!
There was an error while loading. Please reload this page.