|
7 | 7 | paths-ignore: |
8 | 8 | - '**.md' |
9 | 9 | pull_request: |
10 | | - types: [ opened, synchronize, reopened ] |
| 10 | + types: [opened, synchronize, reopened] |
11 | 11 |
|
12 | 12 | concurrency: |
13 | 13 | group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} |
|
22 | 22 | - name: Checkout code |
23 | 23 | uses: actions/checkout@v4.2.2 |
24 | 24 | with: |
25 | | - fetch-depth: 0 # Shallow clones should be disabled for better analysis relevancy |
| 25 | + fetch-depth: 0 |
26 | 26 |
|
27 | 27 | - name: Set up JDK 21 |
28 | 28 | uses: actions/setup-java@v4.7.1 |
@@ -51,33 +51,21 @@ jobs: |
51 | 51 | -${{ hashFiles('**/*.gradle*') }} |
52 | 52 | -${{ hashFiles('**/buildSrc/**') }} |
53 | 53 |
|
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 |
57 | 56 |
|
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 |
60 | 59 |
|
61 | 60 | - name: Generate Test Coverage Xml Report |
62 | 61 | run: ./gradlew koverXmlReport |
63 | 62 |
|
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 |
77 | 65 | 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 |
81 | 69 |
|
82 | 70 | - name: Run codacy-coverage-reporter |
83 | 71 | uses: codacy/codacy-coverage-reporter-action@v1 |
|
0 commit comments