Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

integrated Codecov #126

Merged
merged 9 commits into from
Apr 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ jobs:
uses: gradle/gradle-build-action@v2
- name: Execute Gradle test
run: ./gradlew test
- name: Upload coverage reports to Codecov with GitHub Action
uses: codecov/[email protected]
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

build_and_publish:
runs-on: ubuntu-latest
Expand Down
4 changes: 3 additions & 1 deletion .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions .idea/dataSources.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 12 additions & 1 deletion backend/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ plugins {
id 'org.springframework.boot' version '3.1.5'
id 'io.spring.dependency-management' version '1.1.3'
id "com.diffplug.spotless" version '6.22.0'
id 'jacoco'
}

group = 'com.dhbw.get2gether'
version = '0.0.1-SNAPSHOT'


java {
sourceCompatibility = '17'
}
Expand Down Expand Up @@ -46,14 +48,23 @@ spotless {
}
}


test {
useJUnitPlatform()
finalizedBy jacocoTestReport // report is always generated after tests run

testLogging {
events "PASSED", "SKIPPED", "FAILED", "STANDARD_OUT", "STANDARD_ERROR"
}
}

jacocoTestReport {
reports {
xml.required = true
}
}
jacocoTestReport {
dependsOn test // tests are required to run before generating the report
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-mongodb'
implementation 'org.springframework.boot:spring-boot-starter-web'
Expand Down
Loading