From 62ca8d87dcc55d2c743f2180ed89ac636ca81ab3 Mon Sep 17 00:00:00 2001 From: Arun Babu Neelicattu Date: Fri, 26 Mar 2021 21:37:08 +0100 Subject: [PATCH] ci: setup synapse server manually --- .github/workflows/integration.yml | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 8990b0b2ef..7975fec451 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -9,18 +9,20 @@ jobs: integration-tests: name: Synapse Integration Tests runs-on: ubuntu-latest - services: - synapse: - image: docker.io/matrixdotorg/synapse:latest - options: >- - --entrypoint=tail - --no-healthcheck - ports: [ 8080, 8480, 8081, 8481, 8082, 8482 ] steps: - uses: actions/checkout@v2 - - name: Start synapse server - run: | - docker exec ${{ job.services.synapse.id }} bash -c 'curl -sL https://raw.githubusercontent.com/matrix-org/synapse/develop/demo/start.sh | sed s/127.0.0.1/0.0.0.0/g | bash' + - name: Set up Python 3.8 + uses: actions/setup-python@v2 + with: + python-version: 3.8 + - name: Cache pip + uses: actions/cache@v2 + with: + path: ~/.cache/pip + key: ${{ runner.os }}-pip + restore-keys: | + ${{ runner.os }}-pip- + ${{ runner.os }}- - uses: actions/cache@v2 with: path: | @@ -29,5 +31,12 @@ jobs: key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} restore-keys: | ${{ runner.os }}-gradle- + - name: Start synapse server + run: | + python3 -m venv .synapse + source .synapse/bin/activate + pip install synapse matrix-synapse + curl -sL https://raw.githubusercontent.com/matrix-org/synapse/develop/demo/start.sh \ + | sed s/127.0.0.1/0.0.0.0/g | bash - name: Run unit tests run: ./gradlew vector:connectedAndroidTest matrix-sdk-android:connectedAndroidTest