Skip to content

Commit f1f22fd

Browse files
committed
Add a CI job to run specs with LC_ALL=C
* Which simulates having no locale set and using the "default" locale. * To catch failures earlier rather than in https://rubyci.org/ * See #1305 (comment)
1 parent 8c98a84 commit f1f22fd

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ jobs:
1515
ruby: [ 3.3.10, 3.4.8, 4.0.1 ]
1616
mspecopt: [""]
1717
rubyopt: [""]
18+
locale: [""]
1819
include:
20+
- { os: ubuntu, ruby: 4.0.1, locale: "LC_ALL=C" }
1921
- { os: ubuntu, ruby: 4.0.1, mspecopt: "--repeat 2" }
2022
- { os: ubuntu, ruby: 4.0.1, rubyopt: "--enable-frozen-string-literal" }
2123
- { os: ubuntu, ruby: 4.0.1, rubyopt: "--parser=parse.y" }
@@ -39,7 +41,7 @@ jobs:
3941
env:
4042
CHECK_LEAKS: true
4143
RUBYOPT: "${{ matrix.rubyopt }}"
42-
run: ../mspec/bin/mspec -j --timeout 30 ${{ matrix.mspecopt }}
44+
run: ${{ matrix.locale }} ../mspec/bin/mspec -j --timeout 30 ${{ matrix.mspecopt }}
4345

4446
- name: Run specs (macOS)
4547
if: matrix.os == 'macos'

0 commit comments

Comments
 (0)