-
Notifications
You must be signed in to change notification settings - Fork 162
55 lines (53 loc) · 1.9 KB
/
LocalesTest.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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@v3
- name: Setup dotnet SDK
uses: actions/setup-dotnet@v3
with:
global-json-file: global.json
- name: Set up dependency caching for faster builds
uses: actions/cache@v3
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