From f490ea658c82bc37c732310384a76c83fccdf387 Mon Sep 17 00:00:00 2001 From: Moandor Date: Tue, 7 Jul 2020 11:34:21 +0800 Subject: [PATCH] [test] add external commissioner tests (#5187) This adds tests of ot-commissioner as part of GitHub Action workflows. --- .github/workflows/simulation.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/.github/workflows/simulation.yml b/.github/workflows/simulation.yml index 1c95ca3d1..b2b191ac9 100644 --- a/.github/workflows/simulation.yml +++ b/.github/workflows/simulation.yml @@ -203,6 +203,35 @@ jobs: - name: Codecov uses: codecov/codecov-action@v1 + external-commissioner: + runs-on: ubuntu-18.04 + steps: + - uses: actions/checkout@v2 + - name: Bootstrap + run: | + sudo apt-get --no-install-recommends install -y ninja-build + git clone https://github.com/openthread/ot-commissioner.git /tmp/ot-commissioner --depth 1 --branch master + - name: Build + run: | + cd /tmp/ot-commissioner + script/bootstrap.sh + cmake -GNinja \ + -DCMAKE_CXX_STANDARD=11 \ + -DCMAKE_CXX_STANDARD_REQUIRED=ON \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr/local \ + -S . -B build + cmake --build build + sudo cmake --install build + - name: Run + run: | + export OT_COMM_OPENTHREAD="$(pwd)" + cd /tmp/ot-commissioner/tests/integration + ./bootstrap.sh + ./run_tests.sh + - name: Codecov + uses: codecov/codecov-action@v1 + multiple-instance: runs-on: ubuntu-18.04 env: