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 14, 2021
1 parent c9d4581 commit 1f84899
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 1f84899

Please sign in to comment.