From 4b1aa507f2e605d3565c8ff9bdf141ce3313d315 Mon Sep 17 00:00:00 2001 From: Jean-Roland Date: Fri, 20 Oct 2023 17:23:01 +0200 Subject: [PATCH] build: run modular test in CI --- .github/workflows/build-shared.yaml | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-shared.yaml b/.github/workflows/build-shared.yaml index 86b3ec829..82b998db9 100644 --- a/.github/workflows/build-shared.yaml +++ b/.github/workflows/build-shared.yaml @@ -62,13 +62,27 @@ jobs: feature_queryable: [1, 0] feature_query: [1, 0] steps: - - uses: actions/checkout@v2 + - name: Checkout code + uses: actions/checkout@v2 + + - name: Run docker image + run: docker run --name zenoh_router --init --net host -d eclipse/zenoh:master + continue-on-error: true + - name: Build project - run: make all + run: | + make all + ./build/tests/z_modular_test $Z_FEATURE_PUBLICATION $Z_FEATURE_SUBSCRIPTION $Z_FEATURE_QUERYABLE $Z_FEATURE_QUERY + continue-on-error: true env: BUILD_TYPE: Debug ZENOH_DEBUG: 3 Z_FEATURE_PUBLICATION: ${{ matrix.feature_publication }} Z_FEATURE_SUBSCRIPTION: ${{ matrix.feature_subscription }} Z_FEATURE_QUERYABLE: ${{ matrix.feature_queryable }} - Z_FEATURE_QUERY: ${{ matrix.feature_query }} \ No newline at end of file + Z_FEATURE_QUERY: ${{ matrix.feature_query }} + + - name: Stop docker image + run: | + docker stop zenoh_router + docker rm zenoh_router \ No newline at end of file