From 0c905593e15daad7abc2481c72740b78eeea3909 Mon Sep 17 00:00:00 2001 From: Ruslan Ibragimov Date: Fri, 2 Feb 2024 00:21:54 +0300 Subject: [PATCH] Add codecov --- .github/workflows/build.yml | 2 +- .readme/AGPLv3_Logo.svg | 27 +++++++++++++++++++++++++++ README.md | 7 +++++++ build.gradle.kts | 27 ++++++++++++++------------- gradle.properties | 1 + 5 files changed, 50 insertions(+), 14 deletions(-) create mode 100644 .readme/AGPLv3_Logo.svg diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e55d649..ce225f2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,7 +22,7 @@ jobs: with: java-version: "21" distribution: "liberica" - - run: ./gradlew check distTar + - run: ./gradlew check jacocoTestReport distTar - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v3 env: diff --git a/.readme/AGPLv3_Logo.svg b/.readme/AGPLv3_Logo.svg new file mode 100644 index 0000000..d2ebb9e --- /dev/null +++ b/.readme/AGPLv3_Logo.svg @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/README.md b/README.md index ccfb388..701c1d1 100644 --- a/README.md +++ b/README.md @@ -147,3 +147,10 @@ - Distributed search engine * [Hubzilla](https://zotlabs.org/page/hubzilla/hubzilla-project) - Nomadic identity - **Research** + +## License + +This project is licensed under the terms of +the [GNU Affero General Public License v3.0](https://www.gnu.org/licenses/agpl-3.0.en.html). + + diff --git a/build.gradle.kts b/build.gradle.kts index d33ab31..14cf838 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,6 +1,7 @@ import org.jetbrains.kotlin.gradle.dsl.KotlinVersion plugins { + jacoco application alias(libs.plugins.kotlin.jvm) alias(libs.plugins.kotlin.serialization) @@ -45,20 +46,20 @@ dependencies { implementation(libs.logback) - implementation("io.ktor:ktor-serialization-kotlinx-json:2.3.7") - implementation("io.ktor:ktor-client-cio:2.3.7") - implementation("io.ktor:ktor-server-content-negotiation:2.3.7") - implementation("io.ktor:ktor-server-cio:2.3.7") - implementation("io.ktor:ktor-server-locations:2.3.7") - implementation("io.ktor:ktor-server-websockets:2.3.7") - implementation("io.ktor:ktor-client-content-negotiation:2.3.7") - implementation("io.ktor:ktor-server-auth-jwt:2.3.7") - implementation("io.ktor:ktor-server-metrics-micrometer:2.3.7") + implementation("io.ktor:ktor-serialization-kotlinx-json:2.3.8") + implementation("io.ktor:ktor-client-cio:2.3.8") + implementation("io.ktor:ktor-server-content-negotiation:2.3.8") + implementation("io.ktor:ktor-server-cio:2.3.8") + implementation("io.ktor:ktor-server-locations:2.3.8") + implementation("io.ktor:ktor-server-websockets:2.3.8") + implementation("io.ktor:ktor-client-content-negotiation:2.3.8") + implementation("io.ktor:ktor-server-auth-jwt:2.3.8") + implementation("io.ktor:ktor-server-metrics-micrometer:2.3.8") implementation("io.micrometer:micrometer-registry-prometheus:1.12.2") - implementation("io.ktor:ktor-server-call-logging:2.3.7") - implementation("io.ktor:ktor-server-default-headers:2.3.7") - implementation("io.ktor:ktor-server-caching-headers:2.3.7") - implementation("io.ktor:ktor-server-status-pages:2.3.7") + implementation("io.ktor:ktor-server-call-logging:2.3.8") + implementation("io.ktor:ktor-server-default-headers:2.3.8") + implementation("io.ktor:ktor-server-caching-headers:2.3.8") + implementation("io.ktor:ktor-server-status-pages:2.3.8") testImplementation(libs.kotlinx.coroutines.test) testImplementation(libs.mockk) diff --git a/gradle.properties b/gradle.properties index 37f044b..0f13544 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,3 +1,4 @@ kotlin.code.style=official org.gradle.caching=true org.gradle.parallel=true +org.gradle.jvmargs=-Xmx512m