Github actions improvement test

This commit is contained in:
ariskotsomitopoulos 2022-01-03 12:45:05 +02:00
parent ae2dbb808f
commit 7e3a074f8b

View file

@ -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