Skip to content

Commit 97acc2e

Browse files
amazonKamathaggarg
andauthored
Introduced code coverage status badge (#635)
* Introduced code coverage status badge * Trying to fix the URL checker issue * Fix URL check Signed-off-by: Gaurav Aggarwal <[email protected]> --------- Signed-off-by: Gaurav Aggarwal <[email protected]> Co-authored-by: Gaurav Aggarwal <[email protected]> Co-authored-by: Gaurav-Aggarwal-AWS <[email protected]>
1 parent a9e1f66 commit 97acc2e

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.github/actions/url_verifier.sh

+7-4
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,14 @@ function test {
2828

2929
for UNIQ_URL in ${!dict[@]} # loop urls
3030
do
31-
CURL_RES=$(curl -si --user-agent "$(USER_AGENT)" ${UNIQ_URL} 2>/dev/null| head -n 1 | cut -f 2 -d ' ')
31+
CURL_RES=$(curl -si --user-agent "${USER_AGENT}" ${UNIQ_URL} 2>/dev/null| head -n 1 | cut -f 2 -d ' ')
3232
RES=$?
3333

34+
echo "================================="
35+
echo "Checking URL: ${UNIQ_URL}"
36+
3437
if [ "${CURL_RES}" == '' -o "${CURL_RES}" != '200' ]
3538
then
36-
echo "URL is: ${UNIQ_URL}"
37-
echo "File names: ${dict[$UNIQ_URL]}"
3839
if [ "${CURL_RES}" == '' ] # curl returned an error
3940
then
4041
CURL_RES=$RES
@@ -47,8 +48,10 @@ function test {
4748
else
4849
echo WARNING: Result is: "${CURL_RES}"
4950
fi
50-
echo "================================="
51+
else
52+
echo SUCCESS: Result is: "${CURL_RES}"
5153
fi
54+
echo "================================="
5255
done
5356

5457
if [ "${SCRIPT_RET}" -eq 0 ]

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[![CMock Unit Tests](https://github.com/FreeRTOS/FreeRTOS-Kernel/actions/workflows/unit-tests.yml/badge.svg?branch=main&event=push)](https://github.com/FreeRTOS/FreeRTOS-Kernel/actions/workflows/unit-tests.yml?query=branch%3Amain+event%3Apush+workflow%3A%22CMock+Unit+Tests%22++)
2-
2+
[![codecov](https://codecov.io/gh/FreeRTOS/FreeRTOS-Kernel/badge.svg?branch=main)](https://codecov.io/gh/FreeRTOS/FreeRTOS-Kernel)
33
## Getting started
44
This repository contains FreeRTOS kernel source/header files and kernel ports only. This repository is referenced as a submodule in [FreeRTOS/FreeRTOS](https://github.com/FreeRTOS/FreeRTOS) repository, which contains pre-configured demo application projects under ```FreeRTOS/Demo``` directory.
55

0 commit comments

Comments
 (0)