Skip to content

Commit 63a827d

Browse files
authored
Merge pull request #114 from doubleSlashde/sesturm-build-fix
Added codeQL, removed debug log, deactivate buildbeaker
2 parents e6e6373 + 1b6f227 commit 63a827d

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

.github/workflows/mavenCi.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,27 +20,39 @@ jobs:
2020

2121
steps:
2222
- uses: actions/checkout@v3
23+
2324
- name: Set up JDK 11
2425
uses: actions/setup-java@v3
2526
with:
2627
java-version: '11'
2728
distribution: 'corretto'
2829
cache: maven
30+
31+
# Initializes the CodeQL tools for scanning.
32+
- name: Initialize CodeQL
33+
uses: github/codeql-action/init@v2
34+
with:
35+
languages: 'java'
36+
2937
- name: Build
30-
run: mvn clean verify org.jacoco:jacoco-maven-plugin:0.8.7:prepare-agent org.jacoco:jacoco-maven-plugin:0.8.7:report -Pcoverage
38+
run: mvn -V -B clean verify org.jacoco:jacoco-maven-plugin:0.8.7:prepare-agent org.jacoco:jacoco-maven-plugin:0.8.7:report -Pcoverage
3139

3240
- name: Upload Build Artifact
3341
uses: actions/upload-artifact@v3
3442
with:
3543
name: KeepTime
3644
path: /home/runner/work/KeepTime/KeepTime/target/keeptime-*-bin.zip
45+
3746
- name: Analyze
3847
env:
3948
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4049
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
41-
run: mvn sonar:sonar
50+
run: mvn -V -B sonar:sonar
4251
-Dsonar.host.url=${{ secrets.HOST_URL }}
4352
-Dsonar.organization=${{ secrets.ORGANIZATION_NAME }}
44-
-Dsonar.projectKey=${{ secrets.PROJECT_KEY }} -X
53+
-Dsonar.projectKey=${{ secrets.PROJECT_KEY }}
4554
-Dsonar.java.binaries=.
46-
-Dsonar.qualitygate.wait=true
55+
-Dsonar.qualitygate.wait=false
56+
57+
- name: Perform CodeQL Analysis
58+
uses: github/codeql-action/analyze@v2

0 commit comments

Comments
 (0)