Skip to content

Commit

Permalink
Enable locale testing in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Mar 15, 2021
1 parent 470cdc0 commit 862a0a8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ jobs:
MYSQL_PASSWORD: "zftest"
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_FR fr_BE.UTF-8 de en_US"

services:
memcache:
Expand Down Expand Up @@ -79,6 +81,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:
Expand Down

0 comments on commit 862a0a8

Please sign in to comment.