summary refs log tree commit diff
diff options
context:
space:
mode:
authorOlivier Wilkinson (reivilibre) <oliverw@matrix.org>2022-05-20 12:15:04 +0100
committerOlivier Wilkinson (reivilibre) <oliverw@matrix.org>2022-05-20 17:39:49 +0100
commitbe69bd292a6f623b09030a4c7f87cb5bd4e2ce8e (patch)
treefe3d44bd338e5c0b297d22e4f5d46ef2462a0edd
parentUpdate EventContext `get_current_event_ids` and `get_prev_event_ids` to accep... (diff)
downloadsynapse-be69bd292a6f623b09030a4c7f87cb5bd4e2ce8e.tar.xz
Run Complement with workers in CI
-rw-r--r--.github/workflows/tests.yml12
1 files changed, 11 insertions, 1 deletions
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index efa35b71df..ce4c30d698 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -310,6 +310,16 @@ jobs:
     needs: linting-done
     runs-on: ubuntu-latest
 
+    strategy:
+      fail-fast: false
+      matrix:
+        include:
+          # GHA requires all matrix configurations to have at least one value. We don't want to set one here though.
+          - _: monolith
+
+          # Test with workers
+          - workers: workers
+
     steps:
       # The path is set via a file given by $GITHUB_PATH. We need both Go 1.17 and GOPATH on the path to run Complement.
       # See https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#adding-a-system-path
@@ -356,7 +366,7 @@ jobs:
 
       - run: |
           set -o pipefail
-          COMPLEMENT_DIR=`pwd`/complement synapse/scripts-dev/complement.sh -json 2>&1 | gotestfmt
+          WORKERS=${{ matrix.workers && 1 }} COMPLEMENT_DIR=`pwd`/complement synapse/scripts-dev/complement.sh -json 2>&1 | gotestfmt
         shell: bash
         name: Run Complement Tests