Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions .github/workflows/mavenCi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,27 +20,39 @@ jobs:

steps:
- uses: actions/checkout@v3

- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'corretto'
cache: maven

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: 'java'

- name: Build
run: mvn clean verify org.jacoco:jacoco-maven-plugin:0.8.7:prepare-agent org.jacoco:jacoco-maven-plugin:0.8.7:report -Pcoverage
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

- name: Upload Build Artifact
uses: actions/upload-artifact@v3
with:
name: KeepTime
path: /home/runner/work/KeepTime/KeepTime/target/keeptime-*-bin.zip

- name: Analyze
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: mvn sonar:sonar
run: mvn -V -B sonar:sonar
-Dsonar.host.url=${{ secrets.HOST_URL }}
-Dsonar.organization=${{ secrets.ORGANIZATION_NAME }}
-Dsonar.projectKey=${{ secrets.PROJECT_KEY }} -X
-Dsonar.projectKey=${{ secrets.PROJECT_KEY }}
-Dsonar.java.binaries=.
-Dsonar.qualitygate.wait=true
-Dsonar.qualitygate.wait=false

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2