From 3db70dad91e02f2b4f6b277e4d5e627af9c09f6a Mon Sep 17 00:00:00 2001 From: jainadc9 <93383550+jainadc9@users.noreply.github.com> Date: Thu, 3 Apr 2025 16:17:13 +0530 Subject: [PATCH] Update code coverage with coveralls and build badge with github actions --- .github/workflows/main.yml | 6 ++++++ README.md | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ef5e0f0..eaba5e4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -33,3 +33,9 @@ jobs: - name: Run test shell: bash run : mvn -V -B -U clean test jacoco:report + + - name: Coveralls + if: github.event_name == 'push' + uses: coverallsapp/github-action@v2 + with: + github-token: ${{ github.token }} diff --git a/README.md b/README.md index b9ad93d..040e401 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ Eiffel RemRem [![Sandbox badge](https://img.shields.io/badge/Stage-Sandbox-yellow)](https://github.com/eiffel-community/community/blob/master/PROJECT_LIFECYCLE.md#stage-sandbox) -[![Build Status](https://travis-ci.org/eiffel-community/eiffel-remrem-generate.svg?branch=master)](https://travis-ci.org/eiffel-community/eiffel-remrem-generate) +[![CI](https://github.com/eiffel-community/eiffel-remrem-generate/actions/workflows/main.yml/badge.svg)](https://github.com/eiffel-community/eiffel-remrem-generate/actions/workflows/main.yml) [![Coverage Status](https://coveralls.io/repos/github/eiffel-community/eiffel-remrem-generate/badge.svg?branch=master)](https://coveralls.io/github/eiffel-community/eiffel-remrem-generate?branch=master) [![](https://jitpack.io/v/eiffel-community/eiffel-remrem-generate.svg)](https://jitpack.io/#eiffel-community/eiffel-remrem-generate)