2021-03-26 23:20:06 +03:00
|
|
|
name: Integeration Test
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request: { }
|
|
|
|
push:
|
|
|
|
branches: [ master, develop ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
integration-tests:
|
2021-03-27 01:52:06 +03:00
|
|
|
name: Integration Tests (Synapse)
|
2021-03-26 23:20:06 +03:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-03-26 23:37:08 +03:00
|
|
|
- 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 }}-
|
2021-03-26 23:20:06 +03:00
|
|
|
- uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
~/.gradle/caches
|
|
|
|
~/.gradle/wrapper
|
|
|
|
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-gradle-
|
2021-03-26 23:37:08 +03:00
|
|
|
- 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
|
2021-03-27 01:52:06 +03:00
|
|
|
- name: Run integration tests
|
2021-03-26 23:20:06 +03:00
|
|
|
run: ./gradlew vector:connectedAndroidTest matrix-sdk-android:connectedAndroidTest
|