-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unify testing structure and test-cases to maximize the code-use acros…
…s the frameworks (#365)
- Loading branch information
Showing
96 changed files
with
1,779 additions
and
2,995 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,9 +2,9 @@ name: Build | |
|
||
on: | ||
push: | ||
branches: [main] | ||
branches: [ main ] | ||
pull_request: | ||
branches: [main] | ||
branches: [ main ] | ||
|
||
jobs: | ||
build-and-test: | ||
|
@@ -19,15 +19,18 @@ jobs: | |
- name: Check out Git repository | ||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | ||
|
||
- name: Gradle Build and Test | ||
uses: gradle/[email protected] | ||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v4 | ||
with: | ||
arguments: --build-cache build test jacocoTestReport | ||
gradle-version: current | ||
|
||
- name: Gradle Build and Test | ||
run: gradle --build-cache --configuration-cache build test koverXmlReport | ||
|
||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v4 | ||
with: | ||
files: ./build/reports/kediatr-core/jacoco/test/jacocoTestReport.xml,./build/reports/kediatr-koin-starter/jacoco/test/jacocoTestReport.xml,./build/reports/kediatr-quarkus-starter/jacoco/test/jacocoTestReport.xml,./build/reports/kediatr-spring-boot-2x-starter/jacoco/test/jacocoTestReport.xml,./build/reports/kediatr-spring-boot-3x-starter/jacoco/test/jacocoTestReport.xml | ||
files: '**/build/reports/kover/report.xml' | ||
flags: unittests | ||
name: codecov-umbrella | ||
fail_ci_if_error: false | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
name: Publish to Maven | ||
|
||
on: | ||
release: | ||
types: [created] | ||
release: | ||
types: [ created ] | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
|
@@ -12,21 +12,21 @@ jobs: | |
packages: write | ||
|
||
steps: | ||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
server-id: github | ||
settings-path: ${{ github.workspace }} | ||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
server-id: github | ||
settings-path: ${{ github.workspace }} | ||
|
||
- name: Publish to Maven Repository | ||
uses: gradle/[email protected] | ||
with: | ||
arguments: --build-cache publish | ||
env: | ||
gpg_private_key: ${{ secrets.gpg_private_key }} | ||
gpg_passphrase: ${{ secrets.gpg_passphrase }} | ||
nexus_username: ${{ secrets.nexus_username }} | ||
nexus_password: ${{ secrets.nexus_password }} | ||
- name: Publish to Maven Repository | ||
uses: gradle/[email protected] | ||
with: | ||
arguments: --build-cache publish | ||
env: | ||
gpg_private_key: ${{ secrets.gpg_private_key }} | ||
gpg_passphrase: ${{ secrets.gpg_passphrase }} | ||
nexus_username: ${{ secrets.nexus_username }} | ||
nexus_password: ${{ secrets.nexus_password }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,31 @@ | ||
group = "com.trendyol" | ||
|
||
plugins { | ||
kotlin("jvm") version libs.versions.kotlin.get() | ||
id("kediatr-publishing") apply false | ||
id("com.palantir.git-version") version "3.1.0" | ||
java | ||
kotlin("jvm") version libs.versions.kotlin.get() | ||
java | ||
id("kediatr-publishing") apply false | ||
alias(libs.plugins.spotless) | ||
} | ||
|
||
val versionDetails: groovy.lang.Closure<com.palantir.gradle.gitversion.VersionDetails> by extra | ||
val details = versionDetails() | ||
version = details.lastTag | ||
version = properties["version"].toString() | ||
|
||
subprojectsOf("projects") { | ||
apply { | ||
plugin("kotlin") | ||
plugin("kediatr-publishing") | ||
plugin("java") | ||
} | ||
apply { | ||
plugin("kotlin") | ||
plugin("kediatr-publishing") | ||
plugin("java") | ||
plugin(rootProject.libs.plugins.spotless.pluginId) | ||
} | ||
|
||
java { | ||
withSourcesJar() | ||
withJavadocJar() | ||
spotless { | ||
kotlin { | ||
ktlint() | ||
.setEditorConfigPath(rootProject.layout.projectDirectory.file(".editorconfig")) | ||
} | ||
} | ||
|
||
java { | ||
withSourcesJar() | ||
withJavadocJar() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
plugins { | ||
`kotlin-dsl` | ||
`kotlin-dsl` | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
google() | ||
gradlePluginPortal() | ||
mavenCentral() | ||
google() | ||
gradlePluginPortal() | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.