From 06cab75df3092aba0c369c8a4fa40e379064d972 Mon Sep 17 00:00:00 2001 From: Benjamin Kampmann Date: Mon, 18 Jul 2022 17:39:51 +0200 Subject: [PATCH] ci(sdk): Add integration tests to CI --- .github/workflows/ci.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fb813b1a3..cb56c88e9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -207,3 +207,38 @@ jobs: with: command: run args: -p xtask -- ci wasm-pack ${{ matrix.cmd }} + + integration-tests: + name: Integration test + if: github.event_name == 'push' || !github.event.pull_request.draft + + runs-on: ubuntu-latest + + steps: + - name: Checkout the repo + uses: actions/checkout@v2 + + - name: Install Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + profile: minimal + override: true + + - name: Load cache + uses: Swatinem/rust-cache@v1 + + - name: Start synapse docker + working-directory: testing/matrix-sdk-integration-testing/assets + run: docker-compose up -d + + - name: Check running containers + working-directory: testing/matrix-sdk-integration-testing/assets + run: docker ps -a + + - name: Check logs + working-directory: testing/matrix-sdk-integration-testing/assets + run: docker logs backend + + - name: Run matrix sdk integration tests + run: cargo test -p matrix-sdk-integration-testing \ No newline at end of file