Skip to content

Commit

Permalink
Test add locales
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Dec 3, 2020
1 parent 3c717a9 commit 568b036
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
MYSQL_PASSWORD: "password"
MYSQL_DATABASE: "zftest"
MYSQL_HOST: "127.0.0.1"
LOCALES: "fr_FR@euro fr_BE.UTF-8 de en_US"

services:
memcache:
Expand Down Expand Up @@ -56,6 +57,24 @@ jobs:
cp tests/TestConfiguration.travis.php tests/TestConfiguration.php
locale -a
sudo apt-get update && sudo apt-get install tzdata locales -y && sudo locale-gen pt_BR.UTF-8
sudo localectl set-locale LANG="pt_BR.UTF-8"
export LANG="pt_BR.UTF-8"
sudo update-locale
echo "Testing language settings"
echo "All languages..."
locale -a
echo "Actual locale"
locale
echo "Actual numeric settings"
locale -c -k LC_NUMERIC
echo "LANG Variable"
echo "$LANG"
echo "LocaleCtl"
localectl status
echo "Printing decimal"
printf "%'.3f\n" 123123,123
- name: Setup PHP ${{ matrix.php }}
uses: shivammathur/setup-php@v2
with:
Expand Down

0 comments on commit 568b036

Please sign in to comment.