Skip to content

Commit

Permalink
generate needed locales
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Dec 5, 2020
1 parent 9b4d17c commit bc80406
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
MYSQL_PASSWORD: "password"
MYSQL_DATABASE: "zftest"
MYSQL_HOST: "127.0.0.1"
# Default locales are: C C.UTF-8 POSIX en_US.utf8
LOCALES: "fr_FR@euro fr_BE.UTF-8 de en_US"

services:
Expand All @@ -53,25 +54,12 @@ jobs:
- name: Setup environment
run: |
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 "Existing locales"
locale -a
sudo apt-get update && sudo apt-get install tzdata locales -y && sudo locale-gen $LOCALES
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
Expand Down

0 comments on commit bc80406

Please sign in to comment.