mirror of
https://github.com/espressif/openthread.git
synced 2026-11-10 16:31:11 +00:00
[github-action] fail on Codedov uploading errors (#5437)
This commit is contained in:
@@ -67,6 +67,8 @@ jobs:
|
||||
VERBOSE=1 OT_CLI_PATH="$(pwd)/$(ls output/posix/*/bin/ot-cli) -v" RADIO_DEVICE="$(pwd)/$(ls output/*/bin/ot-rcp)" make -f src/posix/Makefile-posix check
|
||||
- name: Codecov
|
||||
uses: codecov/codecov-action@v1
|
||||
with:
|
||||
fail_ci_if_error: true
|
||||
|
||||
posix-ncp:
|
||||
runs-on: ubuntu-18.04
|
||||
@@ -96,6 +98,8 @@ jobs:
|
||||
VERBOSE=1 OT_NCP_PATH="$(pwd)/$(ls output/posix/*/bin/ot-ncp)" RADIO_DEVICE="$(pwd)/$(ls output/*/bin/ot-rcp)" make -f src/posix/Makefile-posix check
|
||||
- name: Codecov
|
||||
uses: codecov/codecov-action@v1
|
||||
with:
|
||||
fail_ci_if_error: true
|
||||
|
||||
posix-ncp-rcp-migrate:
|
||||
runs-on: ubuntu-18.04
|
||||
@@ -116,6 +120,8 @@ jobs:
|
||||
script/check-ncp-rcp-migrate check
|
||||
- name: Codecov
|
||||
uses: codecov/codecov-action@v1
|
||||
with:
|
||||
fail_ci_if_error: true
|
||||
|
||||
posix-pty:
|
||||
runs-on: ubuntu-18.04
|
||||
@@ -144,6 +150,8 @@ jobs:
|
||||
script/check-posix-pty check
|
||||
- name: Codecov
|
||||
uses: codecov/codecov-action@v1
|
||||
with:
|
||||
fail_ci_if_error: true
|
||||
|
||||
posix-pty-daemon:
|
||||
runs-on: ubuntu-18.04
|
||||
@@ -173,3 +181,5 @@ jobs:
|
||||
script/check-posix-pty check
|
||||
- name: Codecov
|
||||
uses: codecov/codecov-action@v1
|
||||
with:
|
||||
fail_ci_if_error: true
|
||||
|
||||
@@ -54,14 +54,14 @@ jobs:
|
||||
CXX: ${{ matrix.compiler.cxx }}
|
||||
strategy:
|
||||
matrix:
|
||||
compiler: [{c: "gcc", cxx: "g++"}, { c: "clang", cxx: "clang++"}]
|
||||
compiler: [{c: "gcc", cxx: "g++", gcov: "gcov"}, { c: "clang", cxx: "clang++", gcov: "llvm-cov gcov"}]
|
||||
arch: ["m32", "m64"]
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Bootstrap
|
||||
run: |
|
||||
sudo rm /etc/apt/sources.list.d/* && sudo apt-get update
|
||||
sudo apt-get --no-install-recommends install -y g++-multilib ninja-build python3-setuptools python3-wheel
|
||||
sudo apt-get --no-install-recommends install -y g++-multilib ninja-build python3-setuptools python3-wheel llvm
|
||||
python3 -m pip install -r tests/scripts/thread-cert/requirements.txt
|
||||
- name: Build
|
||||
run: |
|
||||
@@ -76,16 +76,19 @@ jobs:
|
||||
./script/test tar simulation 1.1
|
||||
./script/test tar simulation 1.2-bbr
|
||||
- name: Codecov
|
||||
uses: codecov/codecov-action@v1
|
||||
run: |
|
||||
bash <(curl -s https://codecov.io/bash) -x "${{ matrix.compiler.gcov }}" -Z
|
||||
- name: Keep-1-2-bbr-only
|
||||
run: |
|
||||
./script/test tar simulation 1.2
|
||||
./script/test untar simulation 1.2-bbr
|
||||
- name: Codecov
|
||||
uses: codecov/codecov-action@v1
|
||||
run: |
|
||||
bash <(curl -s https://codecov.io/bash) -x "${{ matrix.compiler.gcov }}" -Z
|
||||
- name: Keep-1-1-only
|
||||
run: |
|
||||
./script/test tar simulation 1.2-bbr
|
||||
./script/test untar simulation 1.1
|
||||
- name: Codecov
|
||||
uses: codecov/codecov-action@v1
|
||||
run: |
|
||||
bash <(curl -s https://codecov.io/bash) -x "${{ matrix.compiler.gcov }}" -Z
|
||||
|
||||
@@ -93,6 +93,8 @@ jobs:
|
||||
./script/test py-unittests py-examples
|
||||
- name: Codecov
|
||||
uses: codecov/codecov-action@v1
|
||||
with:
|
||||
fail_ci_if_error: true
|
||||
|
||||
|
||||
packet-verification:
|
||||
@@ -119,6 +121,8 @@ jobs:
|
||||
done
|
||||
- name: Codecov
|
||||
uses: codecov/codecov-action@v1
|
||||
with:
|
||||
fail_ci_if_error: true
|
||||
|
||||
|
||||
cli-ftd:
|
||||
@@ -146,6 +150,8 @@ jobs:
|
||||
VERBOSE=1 make -f examples/Makefile-simulation check
|
||||
- name: Codecov
|
||||
uses: codecov/codecov-action@v1
|
||||
with:
|
||||
fail_ci_if_error: true
|
||||
|
||||
cli-mtd:
|
||||
runs-on: ubuntu-18.04
|
||||
@@ -173,6 +179,8 @@ jobs:
|
||||
VERBOSE=1 make -f examples/Makefile-simulation check
|
||||
- name: Codecov
|
||||
uses: codecov/codecov-action@v1
|
||||
with:
|
||||
fail_ci_if_error: true
|
||||
|
||||
cli-time-sync:
|
||||
runs-on: ubuntu-18.04
|
||||
@@ -200,6 +208,8 @@ jobs:
|
||||
VERBOSE=1 make -f examples/Makefile-simulation check
|
||||
- name: Codecov
|
||||
uses: codecov/codecov-action@v1
|
||||
with:
|
||||
fail_ci_if_error: true
|
||||
|
||||
expects:
|
||||
runs-on: ubuntu-18.04
|
||||
@@ -216,6 +226,8 @@ jobs:
|
||||
OT_OPTIONS=-DOT_TIME_SYNC=ON VIRTUAL_TIME=0 ./script/test build expect
|
||||
- name: Codecov
|
||||
uses: codecov/codecov-action@v1
|
||||
with:
|
||||
fail_ci_if_error: true
|
||||
- name: Run RCP Mode
|
||||
run: |
|
||||
OT_OPTIONS=-DOT_READLINE=OFF VIRTUAL_TIME=0 NODE_MODE=rcp ./script/test clean build expect
|
||||
@@ -224,12 +236,16 @@ jobs:
|
||||
./script/test tar simulation 1.1
|
||||
- name: Codecov
|
||||
uses: codecov/codecov-action@v1
|
||||
with:
|
||||
fail_ci_if_error: true
|
||||
- name: Keep Simulation Only
|
||||
run: |
|
||||
./script/test tar posix 1.1
|
||||
./script/test untar simulation 1.1
|
||||
- name: Codecov
|
||||
uses: codecov/codecov-action@v1
|
||||
with:
|
||||
fail_ci_if_error: true
|
||||
- name: Run TUN Mode
|
||||
run: |
|
||||
sudo apt-get install --no-install-recommends -y dnsmasq bind9-host ntp
|
||||
@@ -245,12 +261,16 @@ jobs:
|
||||
./script/test tar simulation 1.1
|
||||
- name: Codecov
|
||||
uses: codecov/codecov-action@v1
|
||||
with:
|
||||
fail_ci_if_error: true
|
||||
- name: Keep Simulation Only
|
||||
run: |
|
||||
./script/test tar posix 1.1
|
||||
./script/test untar simulation 1.1
|
||||
- name: Codecov
|
||||
uses: codecov/codecov-action@v1
|
||||
with:
|
||||
fail_ci_if_error: true
|
||||
|
||||
external-commissioner:
|
||||
runs-on: ubuntu-18.04
|
||||
@@ -283,6 +303,8 @@ jobs:
|
||||
./run_tests.sh
|
||||
- name: Codecov
|
||||
uses: codecov/codecov-action@v1
|
||||
with:
|
||||
fail_ci_if_error: true
|
||||
|
||||
multiple-instance:
|
||||
runs-on: ubuntu-18.04
|
||||
@@ -306,6 +328,8 @@ jobs:
|
||||
VERBOSE=1 make -f examples/Makefile-simulation check
|
||||
- name: Codecov
|
||||
uses: codecov/codecov-action@v1
|
||||
with:
|
||||
fail_ci_if_error: true
|
||||
|
||||
ncp-gcc-m32:
|
||||
runs-on: ubuntu-18.04
|
||||
@@ -335,6 +359,8 @@ jobs:
|
||||
VERBOSE=1 make -f examples/Makefile-simulation check
|
||||
- name: Codecov
|
||||
uses: codecov/codecov-action@v1
|
||||
with:
|
||||
fail_ci_if_error: true
|
||||
|
||||
ncp-clang:
|
||||
runs-on: ubuntu-18.04
|
||||
@@ -351,7 +377,7 @@ jobs:
|
||||
- name: Bootstrap
|
||||
run: |
|
||||
sudo rm /etc/apt/sources.list.d/* && sudo apt-get update
|
||||
sudo apt-get --no-install-recommends install -y python3-setuptools python3-wheel
|
||||
sudo apt-get --no-install-recommends install -y python3-setuptools python3-wheel llvm
|
||||
python3 -m pip install -r tests/scripts/thread-cert/requirements.txt
|
||||
sudo python3 -m pip install git+https://github.com/openthread/pyspinel
|
||||
- name: Build
|
||||
@@ -362,4 +388,5 @@ jobs:
|
||||
run: |
|
||||
VERBOSE=1 make -f examples/Makefile-simulation check
|
||||
- name: Codecov
|
||||
uses: codecov/codecov-action@v1
|
||||
run: |
|
||||
bash <(curl -s https://codecov.io/bash) -x "llvm-cov gcov" -Z
|
||||
|
||||
@@ -67,6 +67,8 @@ jobs:
|
||||
top_builddir=$(pwd)/build/toranj ./tests/toranj/start.sh
|
||||
- name: Codecov
|
||||
uses: codecov/codecov-action@v1
|
||||
with:
|
||||
fail_ci_if_error: true
|
||||
|
||||
toranj-rcp:
|
||||
runs-on: ubuntu-18.04
|
||||
@@ -96,3 +98,5 @@ jobs:
|
||||
top_builddir=$(pwd)/build/toranj ./tests/toranj/start.sh
|
||||
- name: Codecov
|
||||
uses: codecov/codecov-action@v1
|
||||
with:
|
||||
fail_ci_if_error: true
|
||||
|
||||
Reference in New Issue
Block a user