From dda81d8ef5fe318f0bfa8b3fc9b5064f39f8ef4c Mon Sep 17 00:00:00 2001 From: Simon Lin Date: Mon, 14 Sep 2020 23:40:45 +0800 Subject: [PATCH] [github-actions] misc enhancements to otns test (#5519) This commit introduces enhancements to the cli-ftd-otns test job: - Use Virtual Time UART - Upload test results as artifacts when failed - Use Go 1.14 --- .github/workflows/simulation.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/simulation.yml b/.github/workflows/simulation.yml index ee77d4766..9dd9e12f5 100644 --- a/.github/workflows/simulation.yml +++ b/.github/workflows/simulation.yml @@ -71,11 +71,12 @@ jobs: COVERAGE: 1 REFERENCE_DEVICE: 1 VIRTUAL_TIME: 1 + VIRTUAL_TIME_UART: 1 steps: - uses: actions/checkout@v2 - uses: actions/setup-go@v1 with: - go-version: '1.13' + go-version: '1.14' - name: Set up Python 3.6 uses: actions/setup-python@v1 with: @@ -89,8 +90,14 @@ jobs: 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 + (cd ~/otns && ./script/test py-unittests py-examples) + - uses: actions/upload-artifact@v2 + if: ${{ failure() }} + with: + name: cli-ftd-otns-pcaps + path: | + ./output/*/bin/*.pcap + ./output/*/bin/*.replay - name: Codecov uses: codecov/codecov-action@v1 with: