From f1f22fd71613b6359863b009df0862829e4da0b7 Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Thu, 29 Jan 2026 10:30:27 +0100 Subject: [PATCH] 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 https://github.com/ruby/spec/pull/1305#issuecomment-3816470202 --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f44b46041..38661b6fa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,7 +15,9 @@ jobs: ruby: [ 3.3.10, 3.4.8, 4.0.1 ] mspecopt: [""] rubyopt: [""] + locale: [""] include: + - { os: ubuntu, ruby: 4.0.1, locale: "LC_ALL=C" } - { os: ubuntu, ruby: 4.0.1, mspecopt: "--repeat 2" } - { os: ubuntu, ruby: 4.0.1, rubyopt: "--enable-frozen-string-literal" } - { os: ubuntu, ruby: 4.0.1, rubyopt: "--parser=parse.y" } @@ -39,7 +41,7 @@ jobs: env: CHECK_LEAKS: true RUBYOPT: "${{ matrix.rubyopt }}" - run: ../mspec/bin/mspec -j --timeout 30 ${{ matrix.mspecopt }} + run: ${{ matrix.locale }} ../mspec/bin/mspec -j --timeout 30 ${{ matrix.mspecopt }} - name: Run specs (macOS) if: matrix.os == 'macos'