From 3ebfeb20d6801b6bbfda1934e284c169e6b1d28b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Wed, 18 Nov 2026 17:41:36 -0500 Subject: [PATCH] Test the checked-in parser before Ragel runs The default rake task regenerates the C parser before it runs the tests. This can hide a defect in the C file that the gem includes. Compile and test the checked-in C file first. Regenerate it afterward to check that it matches the Ragel grammar. --- .github/workflows/ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 36104f1b..7396d9c8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -64,7 +64,9 @@ jobs: run: sudo apt-get install -y ragel socat netcat-openbsd - name: Tests Rack ${{ matrix.rack }} ${{ matrix.rubyopt }} - run: bundle exec rake + run: bundle exec rake compile test - name: Ensure ragel output is up-to-date - run: git diff --exit-code + run: | + bundle exec rake ragel + git diff --exit-code