diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 0265ce51c5..7be9777f66 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -55,9 +55,11 @@ jobs:
                    src/**/*.hs exe/*.hs
 
     - name: Build
+      shell: bash
       # Retry it three times to workaround compiler segfaults in windows
       run: cabal build || cabal build || cabal build
     - name: Test
+      shell: bash
       env:
         HLS_TEST_EXE: hls
         HLS_WRAPPER_TEST_EXE: hls-wrapper