[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.
This commit is contained in:
Moandor
2020-05-08 17:03:11 -07:00
committed by GitHub
parent 417093e247
commit 92b290e018
+7 -1
View File
@@ -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