2021-09-01 17:42:08 +03:00
|
|
|
name: Sanity Test
|
|
|
|
|
|
|
|
on:
|
2021-11-08 18:11:25 +03:00
|
|
|
schedule:
|
|
|
|
# At 20:00 every day UTC
|
|
|
|
- cron: '0 20 * * *'
|
2021-09-01 17:42:08 +03:00
|
|
|
|
2021-09-08 14:03:51 +03:00
|
|
|
# Enrich gradle.properties for CI/CD
|
|
|
|
env:
|
|
|
|
CI_GRADLE_ARG_PROPERTIES: >
|
|
|
|
-Porg.gradle.jvmargs=-Xmx2g
|
|
|
|
-Porg.gradle.parallel=false
|
|
|
|
|
2021-09-01 17:42:08 +03:00
|
|
|
jobs:
|
|
|
|
integration-tests:
|
|
|
|
name: Sanity Tests (Synapse)
|
2021-11-08 18:14:18 +03:00
|
|
|
runs-on: macos-latest
|
2021-09-01 17:42:08 +03:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
api-level: [28]
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-11-08 18:11:25 +03:00
|
|
|
with:
|
|
|
|
ref: develop
|
2021-09-01 17:42: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 }}-
|
|
|
|
- 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 --no-rate-limit \
|
|
|
|
| sed s/127.0.0.1/0.0.0.0/g | bash
|
2021-11-08 18:14:18 +03:00
|
|
|
- uses: actions/setup-java@v2
|
|
|
|
with:
|
|
|
|
distribution: 'adopt'
|
|
|
|
java-version: '11'
|
2021-09-01 17:42:08 +03:00
|
|
|
- name: Run sanity tests on API ${{ matrix.api-level }}
|
|
|
|
uses: reactivecircus/android-emulator-runner@v2
|
|
|
|
with:
|
|
|
|
api-level: ${{ matrix.api-level }}
|
2021-09-08 14:03:51 +03:00
|
|
|
script: ./gradlew $CI_GRADLE_ARG_PROPERTIES -PallWarningsAsErrors=false connectedGplayDebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.class=im.vector.app.ui.UiAllScreensSanityTest
|
2021-09-01 17:42:08 +03:00
|
|
|
|