Skip to content

Commit

Permalink
Upgraded Gradle -> 7.5 and added GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ekoutanov committed Jul 23, 2022
1 parent fd1e083 commit e69e04c
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 23 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Gradle build

on:
push:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '11'
- run: ./gradlew build
- run: curl -Os https://uploader.codecov.io/latest/linux/codecov
- run: chmod +x codecov
- run: ./codecov
16 changes: 16 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Check pull request

on:
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '11'
- run: ./gradlew build
2 changes: 1 addition & 1 deletion .lgtm.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
extraction:
java:
index:
java_version: "9"
java_version: "16"
queries:
- include: "*"
- exclude: java/uncaught-number-format-exception
Expand Down
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

20 changes: 12 additions & 8 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@ jacoco {
jacocoTestReport {
dependsOn test
reports {
html.enabled true
xml.enabled true
csv.enabled false
html.required = true
xml.required = true
csv.required = false
}
}

Expand All @@ -152,6 +152,15 @@ dependencies {
testImplementation "com.obsidiandynamics.pojotester:core:${pojotesterVersion}"
}

jar {
finalizedBy jacocoTestReport
}

test {
include "com/obsidiandynamics/indigo/CycledPrimaryTests.class"
include "com/obsidiandynamics/indigo/SupportingTests.class"
}

publishing {
publications {
mavenJava(MavenPublication) {
Expand Down Expand Up @@ -182,9 +191,4 @@ publishing {
}
}
}
}

test {
include "com/obsidiandynamics/indigo/CycledPrimaryTests.class"
include "com/obsidiandynamics/indigo/SupportingTests.class"
}
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\:https://services.gradle.org/distributions/gradle-7.4.2-bin.zip
distributionUrl=https\:https://services.gradle.org/distributions/gradle-7.5-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

0 comments on commit e69e04c

Please sign in to comment.