From 20c8a01eecbaf3f3ae140b7df7c5cd78714fa29f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Tue, 12 Jan 2021 19:40:11 +0200 Subject: [PATCH] Enable locale testing in CI --- .github/workflows/tests.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9177e433b..7e56ceadb 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -52,6 +52,10 @@ jobs: MYSQL_ALLOW_EMPTY_PASSWORD: "1" options: --health-cmd="mysqladmin ping" --health-interval=5s --health-timeout=2s --health-retries=3 + env: + # Default locales are: C C.UTF-8 POSIX en_US.utf8 + LOCALES: "fr_FR@euro fr_FR fr_BE.UTF-8 de en_US" + steps: - name: Checkout Code uses: actions/checkout@v2 @@ -79,6 +83,11 @@ jobs: - name: Setup environment for PHPUnit run: | cp tests/TestConfiguration.ci.php tests/TestConfiguration.php + 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 - name: "Run PHPUnit tests (Experimental: ${{ matrix.experimental }})" env: