Skip to content

Commit ad6a87a

Browse files
fix: Add step for slack message
1 parent 08b5827 commit ad6a87a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ jobs:
2727
- name: Test Coverage
2828
run: |
2929
docker-compose -f scripts/docker_lintage/docker-compose.yaml up --build coverage
30-
uses: act10ns/slack@v2
30+
- uses: act10ns/slack@v2
3131
with:
32-
status: starting
32+
status: ${{job.status}}
3333
message: Shame on ${{ github.event.name.pull_request.user.login }}! Test coverage is not enough.
3434
if: failure()
3535
- name: Unit Test

scripts/lintage/coverage.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ score=$($PYTHON coverage report | tail -n1 | sed -E "s/ +/ /g" | cut -f6 -d " "
55
condition=$(echo "$score>=$COVERAGE_SCORE" | bc -l)
66
echo "COVERAGE UNIT TEST : ${score} | ACCEPTABLE_SCORE : ${COVERAGE_SCORE}"
77
if [[ $condition == "1" ]]; then
8-
echo -e "${GREEN}Coverage Score above threshold. ${NC}"
8+
echo -e "${GREEN}Coverage Score above threshold.${NC} "
99
exit 0
1010
else
11-
echo -e "${RED}Coverage score not acceptable : please, implement more tests for your code.${NC}"
11+
echo -e "${RED}Coverage score not acceptable : please, implement more tests for your code.${NC} "
1212
exit 1
1313
fi

0 commit comments

Comments
 (0)