Skip to content

Commit 744c275

Browse files
committed
Migrate from codeclimate to qlty
1 parent 075911a commit 744c275

File tree

4 files changed

+17
-29
lines changed

4 files changed

+17
-29
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
paths-ignore:
88
- '**.md'
99
pull_request:
10-
types: [ opened, synchronize, reopened ]
10+
types: [opened, synchronize, reopened]
1111

1212
concurrency:
1313
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
@@ -22,7 +22,7 @@ jobs:
2222
- name: Checkout code
2323
uses: actions/checkout@v4.2.2
2424
with:
25-
fetch-depth: 0 # Shallow clones should be disabled for better analysis relevancy
25+
fetch-depth: 0
2626

2727
- name: Set up JDK 21
2828
uses: actions/setup-java@v4.7.1
@@ -51,33 +51,21 @@ jobs:
5151
-${{ hashFiles('**/*.gradle*') }}
5252
-${{ hashFiles('**/buildSrc/**') }}
5353
54-
- name: Run checks and test
55-
# run: ./gradlew detekt ktlintCheck --build-cache --no-daemon --stacktrace --gradle-user-home "$GRADLE_HOME"
56-
run: ./gradlew detekt --build-cache --no-daemon --stacktrace --gradle-user-home "$GRADLE_HOME"
54+
- name: Run Detekt
55+
run: ./gradlew detekt --build-cache --no-daemon --stacktrace
5756

58-
- name: Build with Gradle and test
59-
run: ./gradlew build -x koverVerify -x ktlintCheck -x ktlintFormat -x runKtlintCheckOverTestSourceSet -x ktlintMainSourceSetCheck -x ktlintKotlinScriptCheck # Skipping koverVerify to avoid failure if coverage has lowered
57+
- name: Build with Gradle and run tests
58+
run: ./gradlew build -x koverVerify -x ktlintCheck -x ktlintFormat -x runKtlintCheckOverTestSourceSet -x ktlintMainSourceSetCheck -x ktlintKotlinScriptCheck
6059

6160
- name: Generate Test Coverage Xml Report
6261
run: ./gradlew koverXmlReport
6362

64-
# - name: Upload coverage to Codecov
65-
# uses: codecov/codecov-action@v3.1.4
66-
# with:
67-
# token: ${{ secrets.CODECOV_TOKEN }}
68-
# directory: ./build/reports/kover/
69-
# files: ./build/reports/kover/report.xml
70-
# verbose: true
71-
72-
- name: Upload test coverage to Code Climate
73-
uses: paambaati/codeclimate-action@v9.0.0
74-
env:
75-
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
76-
JACOCO_SOURCE_PATH: "${{github.workspace}}/src/main/kotlin"
63+
- name: Upload test coverage to qlty
64+
uses: qltysh/qlty-action/coverage@v1
7765
with:
78-
coverageCommand: ./gradlew test jacocoTestReport
79-
coverageLocations: ./build/reports/jacoco/test/jacocoTestReport.xml:jacoco
80-
debug: true
66+
oidc: true
67+
files: build/reports/jacoco/test/jacocoTestReport.xml
68+
add-prefix: src/main/kotlin
8169

8270
- name: Run codacy-coverage-reporter
8371
uses: codacy/codacy-coverage-reporter-action@v1

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
<p align="center">
44
<a href="https://github.com/ashtanko/kotlab/actions/workflows/build.yml"><img alt="Build" src="https://github.com/ashtanko/kotlab/actions/workflows/build.yml/badge.svg?branch=main"/></a>
55
<a href="https://codecov.io/gh/ashtanko/kotlab"><img alt="Codecov" src="https://codecov.io/gh/ashtanko/kotlab/branch/main/graph/badge.svg?token=JEU9EIJMHA"/></a>
6-
<a href="https://codeclimate.com/github/ashtanko/kotlab/test_coverage"><img alt="Test Coverage" src="https://api.codeclimate.com/v1/badges/428fc33c4caf2c832402/test_coverage"/></a>
6+
<a href="https://qlty.sh/gh/ashtanko/projects/kotlab"><img alt="Test Coverage" src="https://qlty.sh/gh/ashtanko/projects/kotlab/coverage.svg"/></a>
77
<a href="https://app.codacy.com/gh/ashtanko/kotlab/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_coverage"><img alt="Codacy Coverage Badge" src="https://app.codacy.com/project/badge/Coverage/74cad08184b34038bb5c64c317384367"/></a>
88
<a href="https://www.codefactor.io/repository/github/ashtanko/kotlin-lab"><img alt="CodeFactor" src="https://www.codefactor.io/repository/github/ashtanko/kotlin-lab/badge"/></a>
9-
<a href="https://codeclimate.com/github/ashtanko/kotlab/maintainability"><img alt="Maintainability" src="https://api.codeclimate.com/v1/badges/428fc33c4caf2c832402/maintainability"/></a>
9+
<a href="https://qlty.sh/gh/ashtanko/projects/kotlab"><img alt="Maintainability" src="https://qlty.sh/gh/ashtanko/projects/kotlab/maintainability.svg"/></a>
1010
<a href="https://app.codacy.com/gh/ashtanko/kotlab/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade"><img alt="Codacy Grade Badge" src="https://app.codacy.com/project/badge/Grade/74cad08184b34038bb5c64c317384367"/></a>
1111
<a href="https://codebeat.co/projects/github-com-ashtanko-kotlab-main"><img alt="Codebeat Badge" src="https://codebeat.co/badges/b5a26fee-b6d2-46f2-b121-c3d98cb13c9f"/></a>
1212
<a href="https://hitsofcode.com/github/ashtanko/kotlab/view?branch=main"><img alt="Hits-of-Code" src="https://hitsofcode.com/github/ashtanko/kotlab?branch=main"/></a>

config/main.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
<p align="center">
44
<a href="https://github.com/ashtanko/kotlab/actions/workflows/build.yml"><img alt="Build" src="https://github.com/ashtanko/kotlab/actions/workflows/build.yml/badge.svg?branch=main"/></a>
55
<a href="https://codecov.io/gh/ashtanko/kotlab"><img alt="Codecov" src="https://codecov.io/gh/ashtanko/kotlab/branch/main/graph/badge.svg?token=JEU9EIJMHA"/></a>
6-
<a href="https://codeclimate.com/github/ashtanko/kotlab/test_coverage"><img alt="Test Coverage" src="https://api.codeclimate.com/v1/badges/428fc33c4caf2c832402/test_coverage"/></a>
6+
<a href="https://qlty.sh/gh/ashtanko/projects/kotlab"><img alt="Test Coverage" src="https://qlty.sh/gh/ashtanko/projects/kotlab/coverage.svg"/></a>
77
<a href="https://app.codacy.com/gh/ashtanko/kotlab/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_coverage"><img alt="Codacy Coverage Badge" src="https://app.codacy.com/project/badge/Coverage/74cad08184b34038bb5c64c317384367"/></a>
88
<a href="https://www.codefactor.io/repository/github/ashtanko/kotlin-lab"><img alt="CodeFactor" src="https://www.codefactor.io/repository/github/ashtanko/kotlin-lab/badge"/></a>
9-
<a href="https://codeclimate.com/github/ashtanko/kotlab/maintainability"><img alt="Maintainability" src="https://api.codeclimate.com/v1/badges/428fc33c4caf2c832402/maintainability"/></a>
9+
<a href="https://qlty.sh/gh/ashtanko/projects/kotlab"><img alt="Maintainability" src="https://qlty.sh/gh/ashtanko/projects/kotlab/maintainability.svg"/></a>
1010
<a href="https://app.codacy.com/gh/ashtanko/kotlab/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade"><img alt="Codacy Grade Badge" src="https://app.codacy.com/project/badge/Grade/74cad08184b34038bb5c64c317384367"/></a>
1111
<a href="https://codebeat.co/projects/github-com-ashtanko-kotlab-main"><img alt="Codebeat Badge" src="https://codebeat.co/badges/b5a26fee-b6d2-46f2-b121-c3d98cb13c9f"/></a>
1212
<a href="https://hitsofcode.com/github/ashtanko/kotlab/view?branch=main"><img alt="Hits-of-Code" src="https://hitsofcode.com/github/ashtanko/kotlab?branch=main"/></a>

config/main.md.bak

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
<p align="center">
44
<a href="https://github.com/ashtanko/kotlab/actions/workflows/build.yml"><img alt="Build" src="https://github.com/ashtanko/kotlab/actions/workflows/build.yml/badge.svg?branch=main"/></a>
55
<a href="https://codecov.io/gh/ashtanko/kotlab"><img alt="Codecov" src="https://codecov.io/gh/ashtanko/kotlab/branch/main/graph/badge.svg?token=JEU9EIJMHA"/></a>
6-
<a href="https://codeclimate.com/github/ashtanko/kotlab/test_coverage"><img alt="Test Coverage" src="https://api.codeclimate.com/v1/badges/428fc33c4caf2c832402/test_coverage"/></a>
6+
<a href="https://qlty.sh/gh/ashtanko/projects/kotlab"><img alt="Test Coverage" src="https://qlty.sh/gh/ashtanko/projects/kotlab/coverage.svg"/></a>
77
<a href="https://app.codacy.com/gh/ashtanko/kotlab/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_coverage"><img alt="Codacy Coverage Badge" src="https://app.codacy.com/project/badge/Coverage/74cad08184b34038bb5c64c317384367"/></a>
88
<a href="https://www.codefactor.io/repository/github/ashtanko/kotlin-lab"><img alt="CodeFactor" src="https://www.codefactor.io/repository/github/ashtanko/kotlin-lab/badge"/></a>
9-
<a href="https://codeclimate.com/github/ashtanko/kotlab/maintainability"><img alt="Maintainability" src="https://api.codeclimate.com/v1/badges/428fc33c4caf2c832402/maintainability"/></a>
9+
<a href="https://qlty.sh/gh/ashtanko/projects/kotlab"><img alt="Maintainability" src="https://qlty.sh/gh/ashtanko/projects/kotlab/maintainability.svg"/></a>
1010
<a href="https://app.codacy.com/gh/ashtanko/kotlab/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade"><img alt="Codacy Grade Badge" src="https://app.codacy.com/project/badge/Grade/74cad08184b34038bb5c64c317384367"/></a>
1111
<a href="https://codebeat.co/projects/github-com-ashtanko-kotlab-main"><img alt="Codebeat Badge" src="https://codebeat.co/badges/b5a26fee-b6d2-46f2-b121-c3d98cb13c9f"/></a>
1212
<a href="https://hitsofcode.com/github/ashtanko/kotlab/view?branch=main"><img alt="Hits-of-Code" src="https://hitsofcode.com/github/ashtanko/kotlab?branch=main"/></a>

0 commit comments

Comments
 (0)