Skip to content

Commit d8bba2f

Browse files
SonarCloud - JavaBenchmark - 1.0
1 parent d706e9c commit d8bba2f

File tree

5 files changed

+38
-94
lines changed

5 files changed

+38
-94
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: SonarQube
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
types: [opened, synchronize, reopened]
8+
jobs:
9+
build:
10+
name: Build and analyze
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
16+
- name: Set up JDK 17
17+
uses: actions/setup-java@v4
18+
with:
19+
java-version: 17
20+
distribution: 'zulu' # Alternative distribution options are available.
21+
- name: Cache SonarQube packages
22+
uses: actions/cache@v4
23+
with:
24+
path: ~/.sonar/cache
25+
key: ${{ runner.os }}-sonar
26+
restore-keys: ${{ runner.os }}-sonar
27+
- name: Cache Maven packages
28+
uses: actions/cache@v4
29+
with:
30+
path: ~/.m2
31+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
32+
restore-keys: ${{ runner.os }}-m2
33+
- name: Build and analyze
34+
env:
35+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
36+
run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=mtech-software-solutions_BenchmarkJava

.github/workflows/codeql-analysis.yml

Lines changed: 0 additions & 53 deletions
This file was deleted.

.github/workflows/maven.yaml

Lines changed: 0 additions & 23 deletions
This file was deleted.

pom.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1227,6 +1227,8 @@
12271227
<properties>
12281228
<failOnMissingWebXml>false</failOnMissingWebXml>
12291229
<java.target>8</java.target>
1230+
<sonar.organization>mtech-software-solutions</sonar.organization>
1231+
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
12301232
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
12311233
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
12321234
<maven.war.webxml>${basedir}/src/config/web.xml</maven.war.webxml>

0 commit comments

Comments
 (0)