mirror of
https://github.com/element-hq/element-android
synced 2024-11-28 21:48:50 +03:00
Github actions improvement test
This commit is contained in:
parent
ae2dbb808f
commit
7e3a074f8b
1 changed files with 26 additions and 32 deletions
58
.github/workflows/integration.yml
vendored
58
.github/workflows/integration.yml
vendored
|
@ -56,41 +56,35 @@ jobs:
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-pip-
|
${{ runner.os }}-pip-
|
||||||
${{ runner.os }}-
|
${{ runner.os }}-
|
||||||
# - uses: actions/cache@v2
|
- uses: actions/cache@v2
|
||||||
# with:
|
with:
|
||||||
# path: |
|
path: |
|
||||||
# ~/.gradle/caches
|
~/.gradle/caches
|
||||||
# ~/.gradle/wrapper
|
~/.gradle/wrapper
|
||||||
# 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-
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
repository: matrix-org/synapse
|
repository: matrix-org/synapse
|
||||||
ref: develop
|
ref: develop
|
||||||
- name: Start synapse server
|
- name: Start synapse server
|
||||||
run: |
|
run: |
|
||||||
pwd
|
python3 -m venv .synapse
|
||||||
cd synapse
|
source .synapse/bin/activate
|
||||||
pwd
|
pip install synapse matrix-synapse
|
||||||
source env/bin/activate
|
curl -sL https://raw.githubusercontent.com/matrix-org/synapse/develop/demo/start.sh \
|
||||||
pip install -e .
|
| sed s/127.0.0.1/0.0.0.0/g | bash --no-rate-limit
|
||||||
demo/start.sh --no-rate-limit
|
- name: Run integration tests on API ${{ matrix.api-level }}
|
||||||
# python3 -m venv .synapse
|
uses: reactivecircus/android-emulator-runner@v2
|
||||||
# source .synapse/bin/activate
|
with:
|
||||||
# pip install synapse matrix-synapse
|
api-level: ${{ matrix.api-level }}
|
||||||
# curl -sL https://raw.githubusercontent.com/matrix-org/synapse/develop/demo/start.sh --no-rate-limit \
|
#arch: x86_64
|
||||||
# | sed s/127.0.0.1/0.0.0.0/g | bash
|
#disable-animations: true
|
||||||
# - name: Run integration tests on API ${{ matrix.api-level }}
|
# script: ./gradlew -PallWarningsAsErrors=false vector:connectedAndroidTest matrix-sdk-android:connectedAndroidTest
|
||||||
# uses: reactivecircus/android-emulator-runner@v2
|
arch: x86
|
||||||
# with:
|
profile: Nexus 5X
|
||||||
# api-level: ${{ matrix.api-level }}
|
force-avd-creation: false
|
||||||
# #arch: x86_64
|
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
|
||||||
# #disable-animations: true
|
emulator-build: 7425822
|
||||||
# # script: ./gradlew -PallWarningsAsErrors=false vector:connectedAndroidTest matrix-sdk-android:connectedAndroidTest
|
script: ./gradlew $CI_GRADLE_ARG_PROPERTIES -PallWarningsAsErrors=false connectedCheck --stacktrace
|
||||||
# arch: x86
|
|
||||||
# profile: Nexus 5X
|
|
||||||
# force-avd-creation: false
|
|
||||||
# emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
|
|
||||||
# emulator-build: 7425822
|
|
||||||
# script: ./gradlew $CI_GRADLE_ARG_PROPERTIES -PallWarningsAsErrors=false connectedCheck --stacktrace
|
|
||||||
|
|
Loading…
Reference in a new issue