You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This document outlines the steps for the Pull Request Code Coverage process.
4
+
5
+
## Triggering the Workflow
6
+
This GitHub Actions workflow is triggered automatically whenever a pull request (PR) is raised against any branch in the repository. It ensures that every proposed change is checked for code quality and coverage before being merged into the main codebase.
7
+
8
+
## Steps
9
+
10
+
1.**Checkout the Repository**
11
+
- The first step is to checkout the repository to ensure you have the latest code.
12
+
13
+
2.**Set Up JDK 11**
14
+
- JDK 11 is used for building the project. Ensure to use the `temurin` distribution and cache Maven dependencies.
15
+
16
+
3.**Build the Project and Generate Coverage Report**
17
+
- Execute the following commands to build and generate coverage report:
18
+
```bash
19
+
mvn clean verify jacoco:report
20
+
```
21
+
22
+
4. **Set Up JDK 17**
23
+
- After generating the coverage report, set up JDK 17 for SonarQube analysis.
24
+
25
+
5. **Run SonarQube Analysis**
26
+
- Execute the SonarQube analysis to check code quality and coverage:
0 commit comments