Skip to content

Commit

Permalink
ci run
Browse files Browse the repository at this point in the history
  • Loading branch information
ishaileshmishra committed Jul 21, 2023
1 parent 9f08b55 commit 4c1ebde
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: Java CI with Code Coverage

on:
push:
branches:
- feat/CS-36689-compare-merge-branch

jobs:
build-and-test:
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/jacoco.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: Java CI with JaCoCo

on:
push:
branches:
- feat/CS-36689-compare-merge-branch

jobs:
build-and-test:
Expand Down Expand Up @@ -31,7 +29,7 @@ jobs:
total_missed=${total_missed:-0}
total_percentage=$(awk "BEGIN { pc=100*${total_lines}/(${total_lines}+${total_missed}) } { printf \"%f\", pc }")
echo "Total Coverage Percentage: $total_percentage"
if (( $(bc <<< "$total_percentage < 60.0") )); then
if (( $(bc <<< "$total_percentage < 70.0") )); then
echo "Code Coverage is below 80% - failing the CI build."
exit 1
else
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: Publish package to the Maven Central Repository

on:
push:
branches:
- feat/CS-36689-compare-merge-branch
release:
types:
- created
jobs:
publish-maven:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 4c1ebde

Please sign in to comment.