mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-27 22:42:06 +01:00
[github ci] Use overallsapp/github-action@v2 to report coverage stats
This commit is contained in:
parent
b0f0ee2330
commit
95900ea41f
3 changed files with 10 additions and 18 deletions
22
.github/workflows/ci.yml
vendored
22
.github/workflows/ci.yml
vendored
|
@ -72,20 +72,18 @@ jobs:
|
||||||
run: ./gradlew javadocAll --stacktrace
|
run: ./gradlew javadocAll --stacktrace
|
||||||
|
|
||||||
# Test Coverage Report
|
# Test Coverage Report
|
||||||
- name: Jacoco Test Coverage
|
- name: Aggregated Jacoco Test Coverage Report
|
||||||
env:
|
if: ${{ matrix.java == env.PRIMARY_JAVA_VERSION }}
|
||||||
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
|
|
||||||
if: |
|
|
||||||
${{ matrix.java == env.PRIMARY_JAVA_VERSION }} &&
|
|
||||||
${{ env.COVERALLS_REPO_TOKEN != '' }}
|
|
||||||
run: |
|
run: |
|
||||||
if [[ -z ${COVERALLS_REPO_TOKEN} ]]; then
|
|
||||||
echo WARNING: COVERALLS_REPO_TOKEN is empty
|
|
||||||
else
|
|
||||||
echo COVERALLS_REPO_TOKEN is not empty
|
|
||||||
fi
|
|
||||||
./gradlew smack-java11-full:testCodeCoverageReport
|
./gradlew smack-java11-full:testCodeCoverageReport
|
||||||
./gradlew smack-java11-full:coveralls
|
|
||||||
|
# Coveralls
|
||||||
|
- name: Report coverage stats to Coveralls
|
||||||
|
if: ${{ matrix.java == env.PRIMARY_JAVA_VERSION }}
|
||||||
|
uses: coverallsapp/github-action@v2
|
||||||
|
with:
|
||||||
|
format: jacoco
|
||||||
|
file: smack-java11-full/build/reports/jacoco/testCodeCoverageReport/testCodeCoverageReport.xml
|
||||||
|
|
||||||
# Upload build artifacts
|
# Upload build artifacts
|
||||||
- name: Upload build artifacts
|
- name: Upload build artifacts
|
||||||
|
|
|
@ -10,6 +10,5 @@ dependencies {
|
||||||
implementation "biz.aQute.bnd:biz.aQute.bnd.gradle:7.0.0"
|
implementation "biz.aQute.bnd:biz.aQute.bnd.gradle:7.0.0"
|
||||||
implementation "me.champeau.jmh:jmh-gradle-plugin:0.7.2"
|
implementation "me.champeau.jmh:jmh-gradle-plugin:0.7.2"
|
||||||
implementation "net.ltgt.gradle:gradle-errorprone-plugin:4.0.1"
|
implementation "net.ltgt.gradle:gradle-errorprone-plugin:4.0.1"
|
||||||
implementation "gradle.plugin.org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.12.2"
|
|
||||||
implementation "ru.vyarus:gradle-animalsniffer-plugin:1.7.1"
|
implementation "ru.vyarus:gradle-animalsniffer-plugin:1.7.1"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
plugins {
|
plugins {
|
||||||
id 'biz.aQute.bnd.builder'
|
id 'biz.aQute.bnd.builder'
|
||||||
id 'checkstyle'
|
id 'checkstyle'
|
||||||
id 'com.github.kt3k.coveralls'
|
|
||||||
id 'eclipse'
|
id 'eclipse'
|
||||||
id 'idea'
|
id 'idea'
|
||||||
id 'jacoco'
|
id 'jacoco'
|
||||||
|
@ -331,10 +330,6 @@ task copyJavadocDocFiles(type: Copy) {
|
||||||
}
|
}
|
||||||
javadoc.dependsOn copyJavadocDocFiles
|
javadoc.dependsOn copyJavadocDocFiles
|
||||||
|
|
||||||
coveralls {
|
|
||||||
jacocoReportPath 'build/reports/jacoco/testCodeCoverageReport/testCodeCoverageReport.xml'
|
|
||||||
}
|
|
||||||
|
|
||||||
def getGitCommit() {
|
def getGitCommit() {
|
||||||
def projectDirFile = new File("$projectDir")
|
def projectDirFile = new File("$projectDir")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue