Skip to content

Memory Leak Fixes and Code Improvements #7

Memory Leak Fixes and Code Improvements

Memory Leak Fixes and Code Improvements #7

Workflow file for this run

name: OnPullRequest
on:
pull_request:
permissions: read-all
jobs:
security-file-check:
runs-on: [ ubuntu-20.04 ]
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
with:
fetch-depth: 0
- name: Check Security.md file
run: |
if [ ! -f ./security.md ]; then
echo "Security.md file is missing"
exit 1
fi
build-test:
runs-on: [ ubuntu-20.04 ]
needs: [ "security-file-check" ]
env:
http_proxy: ${{ secrets.HTTP_PROXY }}
https_proxy: ${{ secrets.HTTPS_PROXY }}
no_proxy: ${{ secrets.NO_PROXY }}
steps:
- 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 80 ]]; then
echo "Unit test coverage must be above 80%"
exit 1
fi