element-android/.github/workflows/integration.yml
Arun Babu Neelicattu 1fac4dfe3e ci: clean up naming
2021-05-19 17:26:38 +02:00

42 lines
1.3 KiB
YAML

name: Integeration Test
on:
pull_request: { }
push:
branches: [ master, develop ]
jobs:
integration-tests:
name: Integration Tests (Synapse)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- 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: |
~/.gradle/caches
~/.gradle/wrapper
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 integration tests
run: ./gradlew vector:connectedAndroidTest matrix-sdk-android:connectedAndroidTest