Skip to content

Commit

Permalink
fixed test and testing coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
musketyr committed Dec 12, 2019
1 parent 5bd4419 commit 4667476
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 14 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/gradle-rc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Gradle RC Watchdog

on:
schedule:
- cron: '0 0 1 * *'

jobs:
build:
runs-on: ubuntu-latest
env:
GRADLE_OPTS: "-Xmx6g -Xms4g"
CI: true

steps:
- uses: actions/checkout@v1

- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- uses: eskatos/gradle-command-action@v1
with:
arguments: check --stacktrace
gradle-version: rc
14 changes: 2 additions & 12 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,11 @@ on:

jobs:
build:

strategy:
fail-fast: false
matrix:
gradle:
- rc
- '' # wrapper

runs-on: ubuntu-latest

env:
GRADLE_OPTS: "-Xmx6g -Xms4g"
CI: true
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}

steps:
- uses: actions/checkout@v1
Expand All @@ -38,11 +30,9 @@ jobs:
${{ runner.os }}-gradle-
- uses: eskatos/gradle-command-action@v1
with:
arguments: aggregateTestReports jacocoRootReport --stacktrace
gradle-version: ${{ matrix.gradle }}
arguments: check aggregateTestReports jacocoRootReport coveralls --stacktrace
- name: Show Reports
uses: actions/upload-artifact@v1
if: failure()
with:
name: reports
path: build/reports/
14 changes: 14 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -207,4 +207,18 @@ subprojects { Project subproject ->
}


gradle.taskGraph.whenReady {
coveralls {
sourceDirs = subprojects.sourceSets.main.allSource.srcDirs.flatten()
jacocoReportPath = "${buildDir}/reports/jacoco/root/jacocoTestReport.xml"
}
}

tasks.coveralls {
group = 'Coverage reports'
description = 'Uploads the aggregated coverage report to Coveralls'

dependsOn jacocoRootReport
onlyIf { System.env.CI }
}
// TODO: coveralls
6 changes: 5 additions & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pluginManagement {
id 'org.kordamp.gradle.groovy-project' version kordampVersion
id 'org.kordamp.gradle.bintray' version kordampVersion
id 'org.kordamp.gradle.guide' version kordampVersion
id 'com.github.kt3k.coveralls' version '2.8.4'
id 'com.github.kt3k.coveralls' version '2.9.0'
id 'org.ajoberstar.git-publish' version '2.1.1'
}
}
Expand All @@ -35,6 +35,10 @@ buildscript {
}
dependencies {
classpath "org.kordamp.gradle:settings-gradle-plugin:$kordampVersion"
// forces the version suitable for all currently used plugins
classpath 'org.eclipse.jgit:org.eclipse.jgit:4.11.9.201909030838-r', {
force = true
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ class LambdaEchoFunctionSpec extends Specification {
when:
WebSocketResponse response = client.lambdaEcho(request).blockingGet()
then:
false
response.statusCode == 200

0 * sender._
Expand Down

0 comments on commit 4667476

Please sign in to comment.