Optimize CI #82
7
.github/workflows/tests.yml
vendored
7
.github/workflows/tests.yml
vendored
@@ -94,6 +94,13 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
gradle-version: 6.8
|
gradle-version: 6.8
|
||||||
arguments: test -x testSql
|
arguments: test -x testSql
|
||||||
|
- name: Coverage
|
||||||
|
uses: eskatos/gradle-command-action@v1
|
||||||
|
with:
|
||||||
|
gradle-version: 6.8
|
||||||
|
arguments: coveralls
|
||||||
|
env:
|
||||||
|
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
needs: build
|
needs: build
|
||||||
|
|||||||
@@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
[](https://www.codefactor.io/repository/github/flecomte/dc-project)
|
[](https://www.codefactor.io/repository/github/flecomte/dc-project)
|
||||||
[](https://github.com/flecomte/dc-project/actions/workflows/tests.yml)
|
[](https://github.com/flecomte/dc-project/actions/workflows/tests.yml)
|
||||||
|
[](https://coveralls.io/github/flecomte/dc-project?branch=master)
|
||||||
|
|
||||||
|
|
||||||
[Installation](./doc/installation/Installation.md)
|
[Installation](./doc/installation/Installation.md)
|
||||||
|
|
||||||
|
|||||||
@@ -41,6 +41,7 @@ plugins {
|
|||||||
id("net.nemerosa.versioning") version "2.14.0"
|
id("net.nemerosa.versioning") version "2.14.0"
|
||||||
id("io.gitlab.arturbosch.detekt") version "1.16.0-RC1"
|
id("io.gitlab.arturbosch.detekt") version "1.16.0-RC1"
|
||||||
id("com.avast.gradle.docker-compose") version "0.14.0"
|
id("com.avast.gradle.docker-compose") version "0.14.0"
|
||||||
|
id("com.github.kt3k.coveralls") version "2.8.4"
|
||||||
}
|
}
|
||||||
|
|
||||||
application {
|
application {
|
||||||
@@ -197,6 +198,10 @@ tasks.test {
|
|||||||
finalizedBy(tasks.jacocoTestReport) // report is always generated after tests run
|
finalizedBy(tasks.jacocoTestReport) // report is always generated after tests run
|
||||||
}
|
}
|
||||||
|
|
||||||
|
coveralls {
|
||||||
|
sourceDirs.add("src/main/kotlin")
|
||||||
|
}
|
||||||
|
|
||||||
tasks.register("testAll") {
|
tasks.register("testAll") {
|
||||||
group = "verification"
|
group = "verification"
|
||||||
dependsOn(testSql)
|
dependsOn(testSql)
|
||||||
|
|||||||
Reference in New Issue
Block a user