From 92b290e01859f32eeed3225fdbe9de22e6a4a8e6 Mon Sep 17 00:00:00 2001 From: Moandor Date: Sat, 9 May 2020 08:03:11 +0800 Subject: [PATCH] [continuous-integration] avoid coverage data loss (#4937) The code coverage data generated by ./script/test build expect will be erased by VIRTUAL_TIME=0 NODE_MODE=rcp ./script/test clean build expect's clean step, causing coverage less than actual value. This adds an upload step after the first run to avoid the data loss. --- .github/workflows/simulation.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/simulation.yml b/.github/workflows/simulation.yml index 0b9e50293..af6a6aa12 100644 --- a/.github/workflows/simulation.yml +++ b/.github/workflows/simulation.yml @@ -146,10 +146,16 @@ jobs: runs-on: ubuntu-18.04 steps: - uses: actions/checkout@v2 - - name: Run + - name: Bootstrap run: | sudo apt --no-install-recommends install -y expect ninja-build + - name: Run + run: | ./script/test build expect + - name: Codecov + uses: codecov/codecov-action@v1 + - name: Run RCP Mode + run: | VIRTUAL_TIME=0 NODE_MODE=rcp ./script/test clean build expect - name: Codecov uses: codecov/codecov-action@v1