fix: 4.24 Logic and tests (#758) #885
This file contains 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
name: Test Different Locales | |
on: | |
push: | |
branches: [ 'v[1-9][0-9].0' ] | |
pull_request: | |
branches: [ 'v[1-9][0-9].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@v4 | |
- name: Setup dotnet SDK | |
uses: actions/setup-dotnet@v4 | |
with: | |
global-json-file: global.json | |
- name: Set up dependency caching for faster builds | |
uses: actions/cache@v4 | |
id: nuget-cache | |
with: | |
path: | | |
~/.nuget/packages | |
${{ github.workspace }}/**/obj/project.assets.json | |
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} | |
${{ runner.os }}-nuget- | |
- 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 |