Skip to content

Commit 685f011

Browse files
ci: add localized linux test matrix
1 parent 985798c commit 685f011

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

.github/workflows/tests.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,45 @@ jobs:
2323
- name: Run Tests
2424
run: make test
2525

26+
localized-ubuntu:
27+
name: "Ubuntu - ${{ matrix.name }} Locale"
28+
runs-on: ubuntu-latest
29+
timeout-minutes: 10
30+
strategy:
31+
fail-fast: false
32+
matrix:
33+
include:
34+
- name: "Spanish"
35+
lang: "es_ES.UTF-8"
36+
tz: "Europe/Madrid"
37+
- name: "Brazilian"
38+
lang: "pt_BR.UTF-8"
39+
tz: "America/Sao_Paulo"
40+
- name: "Japanese"
41+
lang: "ja_JP.UTF-8"
42+
tz: "Asia/Tokyo"
43+
steps:
44+
- name: Checkout
45+
uses: actions/checkout@v4
46+
with:
47+
fetch-depth: 1
48+
49+
- name: Install locales
50+
run: |
51+
sudo apt-get update
52+
sudo apt-get install -y locales
53+
sudo locale-gen "${{ matrix.lang }}"
54+
55+
- name: Setup Config
56+
run: cp .env.example .env
57+
58+
- name: Run Tests
59+
env:
60+
LANG: ${{ matrix.lang }}
61+
LC_ALL: ${{ matrix.lang }}
62+
TZ: ${{ matrix.tz }}
63+
run: make test
64+
2665
macos:
2766
name: "macOS - latest"
2867
runs-on: macos-latest

0 commit comments

Comments
 (0)