Skip to content

Commit

Permalink
Add codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
IRus committed Feb 1, 2024
1 parent 0c90559 commit 4f78c72
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
with:
java-version: "21"
distribution: "liberica"
- run: ./gradlew check jacocoTestReport distTar
- run: ./gradlew check distTar
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/code_quality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Qodana
on:
workflow_dispatch:
pull_request:
push:
branches:
- main

jobs:
qodana:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
checks: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: 'Qodana Scan'
uses: JetBrains/[email protected]
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
11 changes: 11 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,14 @@ dependencies {
testImplementation(libs.junit.jupiter)
runtimeOnly(libs.junit.platform.launcher)
}

tasks.jacocoTestReport {
reports {
xml.required = true
csv.required = false
}
}

tasks.check {
dependsOn(tasks.jacocoTestReport)
}

0 comments on commit 4f78c72

Please sign in to comment.