From bebd84d1f5470cb267970dc7ec6f2f66b2bce438 Mon Sep 17 00:00:00 2001 From: Arun Babu Neelicattu Date: Fri, 26 Mar 2021 21:20:06 +0100 Subject: [PATCH] ci: add integration tests --- .github/workflows/integration.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/integration.yml diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml new file mode 100644 index 0000000000..2fd1c3732d --- /dev/null +++ b/.github/workflows/integration.yml @@ -0,0 +1,31 @@ +name: Integeration Test + +on: + pull_request: { } + push: + branches: [ master, develop ] + +jobs: + integration-tests: + name: Synapse Integration Tests + runs-on: ubuntu-latest + services: + synapse: + image: docker.io/matrixdotorg/synapse:latest + options: "--entrypoint tail" + ports: [ 8080, 8480, 8081, 8481, 8082, 8482 ] + steps: + - uses: actions/checkout@v2 + - name: Start synapse server + run: | + docker exec ${{ job.services.synapse.id }} bash -c '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' + - 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: Run unit tests + run: ./gradlew vector:connectedAndroidTest matrix-sdk-android:connectedAndroidTest