Skip to content

Commit a122c56

Browse files
ci: install locale packs in localized matrix
1 parent 0e04c19 commit a122c56

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

.github/workflows/tests.yml

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ jobs:
3434
- name: "Spanish"
3535
lang: "es_ES.UTF-8"
3636
tz: "Europe/Madrid"
37-
probe_error: "orden no encontrada"
37+
language_pack: "language-pack-es-base"
3838
- name: "Brazilian"
3939
lang: "pt_BR.UTF-8"
4040
tz: "America/Sao_Paulo"
41-
probe_error: ""
41+
language_pack: "language-pack-pt-base"
4242
- name: "Japanese"
4343
lang: "ja_JP.UTF-8"
4444
tz: "Asia/Tokyo"
45-
probe_error: ""
45+
language_pack: "language-pack-ja-base"
4646
steps:
4747
- name: Checkout
4848
uses: actions/checkout@v4
@@ -52,20 +52,9 @@ jobs:
5252
- name: Install locales
5353
run: |
5454
sudo apt-get update
55-
sudo apt-get install -y locales ${{ matrix.lang == 'es_ES.UTF-8' && 'language-pack-es-base' || '' }}
55+
sudo apt-get install -y locales "${{ matrix.language_pack }}"
5656
sudo locale-gen "${{ matrix.lang }}"
5757
58-
- name: Probe localized shell error
59-
if: ${{ matrix.probe_error != '' }}
60-
env:
61-
LANG: ${{ matrix.lang }}
62-
LC_ALL: ${{ matrix.lang }}
63-
TZ: ${{ matrix.tz }}
64-
run: |
65-
set -euo pipefail
66-
bash -lc 'invalid_function_name' 2>&1 | tee /tmp/bash-locale-probe.txt || true
67-
grep -q "${{ matrix.probe_error }}" /tmp/bash-locale-probe.txt
68-
6958
- name: Setup Config
7059
run: cp .env.example .env
7160

0 commit comments

Comments
 (0)