ci: setup synapse server manually
This commit is contained in:
parent
c39a8caaed
commit
62ca8d87dc
|
@ -9,18 +9,20 @@ jobs:
|
||||||
integration-tests:
|
integration-tests:
|
||||||
name: Synapse Integration Tests
|
name: Synapse Integration Tests
|
||||||
runs-on: ubuntu-latest
|
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:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Start synapse server
|
- name: Set up Python 3.8
|
||||||
run: |
|
uses: actions/setup-python@v2
|
||||||
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'
|
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
|
- uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
|
@ -29,5 +31,12 @@ jobs:
|
||||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-gradle-
|
${{ 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
|
- name: Run unit tests
|
||||||
run: ./gradlew vector:connectedAndroidTest matrix-sdk-android:connectedAndroidTest
|
run: ./gradlew vector:connectedAndroidTest matrix-sdk-android:connectedAndroidTest
|
||||||
|
|
Loading…
Reference in New Issue