Skip to content

Add sleep time 0f 3 sec to reflect user data in runtime data (#68) #7

Add sleep time 0f 3 sec to reflect user data in runtime data (#68)

Add sleep time 0f 3 sec to reflect user data in runtime data (#68) #7

name: OnMergeRelease
on:
push:
branches:
- 'main'
- 'release/*'
tags:
- '**'
jobs:
build-test:
runs-on: [ ubuntu-20.04 ]
env:
http_proxy: ${{ secrets.HTTP_PROXY }}
https_proxy: ${{ secrets.HTTPS_PROXY }}
no_proxy: ${{ secrets.NO_PROXY }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Build libraries and examples
run: make all
- name: Unit Test Coverage
run: |
test_output=$(make test-coverage)
if [ $? -ne 0 ]; then
echo "Unit tests failed"
exit 1
fi
COVERAGE=$(make test-coverage | grep 'Total:|' | awk -F\| '{print $2}' | awk -F. '{print $1}')
echo "Unit test coverage for Client is - $COVERAGE%"
if [[ $COVERAGE -lt 79 ]]; then
echo "Unit test coverage must be above 79%"
exit 1
fi