#Centipede Add tests for non-Riegeli builds in Github workflow.

PiperOrigin-RevId: 595701947
diff --git a/.github/workflows/bazel_test_centipede.yml b/.github/workflows/bazel_test_centipede.yml
index 47a4eb2..ba4c734 100644
--- a/.github/workflows/bazel_test_centipede.yml
+++ b/.github/workflows/bazel_test_centipede.yml
@@ -31,7 +31,7 @@
     timeout-minutes: 60
     strategy:
       matrix:
-        config: ['default', 'asan']
+        config: ['default', 'noriegeli', 'asan']
     steps:
       - name: Checkout repository
         uses: actions/checkout@v3
@@ -61,6 +61,22 @@
         if: matrix.config == 'asan'
         run: |
           bazel test --test_output=errors --linkopt=-fsanitize=address --copt=-fsanitize=address centipede/puzzles:all
+      - name: Run unit tests without Riegeli
+        if: matrix.config == 'noriegeli'
+        run: |
+          bazel test --no//centipede:use_riegeli --local_test_jobs=1 --test_output=streamed centipede:all
+      - name: Run e2e tests without Riegeli
+        if: matrix.config == 'noriegeli'
+        run: |
+          bazel test --no//centipede:use_riegeli --test_output=errors centipede/testing:instrumentation_test centipede/testing:runner_test
+      - name: Run puzzles without Riegeli
+        if: matrix.config == 'noriegeli'
+        run: |
+          bazel test --no//centipede:use_riegeli --test_output=errors centipede/puzzles:all
+      - name: Run puzzles without Riegeli with ASAN
+        if: matrix.config == 'noriegeli'
+        run: |
+          bazel test --no//centipede:use_riegeli --test_output=errors --linkopt=-fsanitize=address --copt=-fsanitize=address centipede/puzzles:all
       - name: Save new cache based on main
         if: github.ref == 'refs/heads/main'
         uses: actions/cache/save@v3
diff --git a/centipede/run_test_workflow.sh b/centipede/run_test_workflow.sh
index e15016f..453f589 100755
--- a/centipede/run_test_workflow.sh
+++ b/centipede/run_test_workflow.sh
@@ -67,6 +67,10 @@
 bazel test "${BAZEL_ARGS[@]}" centipede/testing:instrumentation_test centipede/testing:runner_test &&
 bazel test "${BAZEL_ARGS[@]}" centipede/puzzles:all
 bazel test "${BAZEL_ARGS[@]}" --linkopt=-fsanitize=address --copt=-fsanitize=address centipede/puzzles:all
+bazel test "${BAZEL_ARGS[@]}" --no//centipede:use_riegeli --local_test_jobs=1 --test_output=streamed centipede:all &&
+bazel test "${BAZEL_ARGS[@]}" --no//centipede:use_riegeli centipede/testing:instrumentation_test centipede/testing:runner_test &&
+bazel test "${BAZEL_ARGS[@]}" --no//centipede:use_riegeli centipede/puzzles:all
+bazel test "${BAZEL_ARGS[@]}" --no//centipede:use_riegeli --linkopt=-fsanitize=address --copt=-fsanitize=address centipede/puzzles:all
 
 declare -ri exit_code=$?
 set -e