mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-04-26 02:01:00 -04:00
ci(sdk): Add integration tests to CI
This commit is contained in:
35
.github/workflows/ci.yml
vendored
35
.github/workflows/ci.yml
vendored
@@ -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
|
||||
Reference in New Issue
Block a user