Skip to content

Commit 5c1b85f

Browse files
authored
chore: replace codeclimate with qlty (#114)
1 parent 781b1ba commit 5c1b85f

1 file changed

Lines changed: 7 additions & 17 deletions

File tree

.github/workflows/aam-backend-service-build-and-publish.yml

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ on:
1616
env:
1717
REGISTRY_IMAGE: ghcr.io/aam-digital/aam-backend-service
1818

19+
permissions:
20+
contents: read
21+
id-token: write # for QLTY code coverage (https://docs.qlty.sh/migration/coverage)
22+
1923
jobs:
2024
test:
2125
runs-on: ubuntu-latest
@@ -49,24 +53,10 @@ jobs:
4953
run: |
5054
./gradlew jacocoTestReport --no-daemon
5155
52-
- name: Publish code coverage to code climate
53-
uses: paambaati/codeclimate-action@v9.0.0
54-
env:
55-
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
56-
JACOCO_SOURCE_PATH: application/aam-backend-service/src/main/kotlin
57-
with:
58-
coverageLocations: application/aam-backend-service/build/reports/jacoco/test/jacocoTestReport.xml:jacoco
59-
60-
- name: Add code coverage to PR
61-
uses: madrapps/jacoco-report@v1.7.1
62-
if: ${{ github.event.ref == '' }}
56+
- uses: qltysh/qlty-action/coverage@v1
6357
with:
64-
paths: application/aam-backend-service/build/reports/jacoco/test/jacocoTestReport.xml
65-
token: ${{ secrets.GITHUB_TOKEN }}
66-
min-coverage-overall: 80
67-
min-coverage-changed-files: 80
68-
title: Code Coverage Analyse
69-
update-comment: true
58+
oidc: true
59+
files: application/aam-backend-service/build/reports/jacoco/test/jacocoTestReport.xml:jacoco
7060

7161
build:
7262
strategy:

0 commit comments

Comments
 (0)