From 787284e3a0e032a27a4832aaa3f5b387bb123a92 Mon Sep 17 00:00:00 2001 From: Simon Lin Date: Mon, 21 Sep 2020 23:44:49 +0800 Subject: [PATCH] [otns] test with a specific OTNS commit (#5553) --- .github/workflows/simulation.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/simulation.yml b/.github/workflows/simulation.yml index 9dd9e12f5..e72990d6f 100644 --- a/.github/workflows/simulation.yml +++ b/.github/workflows/simulation.yml @@ -87,10 +87,19 @@ jobs: sudo apt-get --no-install-recommends install -y g++-multilib ./bootstrap - name: Run OTNS Tests + env: + OTNS_COMMIT: "8e9b4ba5825dd37e6e84f7801dd72101fde3d191" # Sep 17, 2020 run: | - git clone https://github.com/openthread/ot-ns.git --depth 1 --branch master ~/otns export OT_DIR=$PWD - (cd ~/otns && ./script/test py-unittests py-examples) + mkdir -p /tmp/otns + ( + cd /tmp/otns + git init + git remote add origin https://github.com/openthread/ot-ns.git + git fetch origin "${OTNS_COMMIT:-master}" --depth 1 + git reset --hard FETCH_HEAD + ./script/test py-unittests py-examples + ) - uses: actions/upload-artifact@v2 if: ${{ failure() }} with: