diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 2143034..ddd4fd6 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -26,4 +26,4 @@ jobs: env: DOCKER_IO_USERNAME: ${{ secrets.DOCKER_IO_USERNAME }} DOCKER_IO_PASSWORD: ${{ secrets.DOCKER_IO_PASSWORD }} - run: mvn -ntp clean install + run: mvn -ntp clean install -Pci diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index af74477..4004878 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -49,7 +49,7 @@ jobs: queries: +security-and-quality - name: Build with Maven - run: mvn -V --color always -ntp clean verify --file pom.xml -Pskip + run: mvn -V --color always -ntp clean verify -Pskip - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v3 diff --git a/.github/workflows/update-badges.yml b/.github/workflows/update-badges.yml index 948d62a..54f3ed5 100644 --- a/.github/workflows/update-badges.yml +++ b/.github/workflows/update-badges.yml @@ -30,6 +30,84 @@ jobs: uses: uhafner/quality-monitor@v1 with: github-token: ${{ secrets.GITHUB_TOKEN }} + config: > + { + "tests": { + "tools": [ + { + "id": "test", + "name": "Tests", + "pattern": "**/target/*-reports/TEST*.xml" + } + ], + "name": "Tests" + }, + "analysis": [ + { + "name": "Style", + "id": "style", + "tools": [ + { + "id": "checkstyle", + "pattern": "**/target/checkstyle-*/checkstyle-result.xml" + }, + { + "id": "pmd", + "pattern": "**/target/pmd-*/pmd.xml" + } + ] + }, + { + "name": "Bugs", + "id": "bugs", + "icon": "bug", + "tools": [ + { + "id": "spotbugs", + "sourcePath": "src/main/java", + "pattern": "**/target/spotbugsXml.xml" + }, + { + "id": "error-prone", + "pattern": "**/maven.log" + } + ] + } + ], + "coverage": [ + { + "name": "Code Coverage", + "tools": [ + { + "id": "jacoco", + "name": "Line Coverage", + "metric": "line", + "sourcePath": "src/main/java", + "pattern": "**/target/site/jacoco/jacoco.xml" + }, + { + "id": "jacoco", + "name": "Branch Coverage", + "metric": "branch", + "sourcePath": "src/main/java", + "pattern": "**/target/site/jacoco/jacoco.xml" + } + ] + }, + { + "name": "Mutation Coverage", + "tools": [ + { + "id": "pit", + "name": "Mutation Coverage", + "metric": "mutation", + "sourcePath": "src/main/java", + "pattern": "**/target/pit-reports/mutations.xml" + } + ] + } + ] + } - name: Write metrics to GitHub output id: metrics run: |