diff --git a/.github/workflows/macOS.yaml b/.github/workflows/macOS.yaml
index a5ab6fc383848fee67cbe78ea500ce074604ccdc..09db6c3d0885f32e3d350e8e75c9e30a037a79da 100644
--- a/.github/workflows/macOS.yaml
+++ b/.github/workflows/macOS.yaml
@@ -6,6 +6,9 @@ jobs:
   build-test:
     name: Build & unit tests & sanity check
     runs-on: macOS-latest
+    strategy:
+      matrix:
+        knot-version: ['3.1', '3.2']
 
     steps:
       - name: Checkout resolver code
@@ -19,7 +22,7 @@ jobs:
 
       - name: Install libknot from sources
         env:
-          KNOT_DNS_VERSION: '3.1'
+          KNOT_DNS_VERSION: ${{ matrix.knot-version }}
         run: |
           git clone -b ${KNOT_DNS_VERSION} https://gitlab.nic.cz/knot/knot-dns.git
           cd knot-dns