Skip to content

Commit

Permalink
Merge pull request #2 from hndrs/ci-tests
Browse files Browse the repository at this point in the history
add ci tests
  • Loading branch information
MarvinSchramm authored Feb 9, 2021
2 parents df416e1 + 0b1fb31 commit 114142c
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 3 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Tests

# Controls when the action will run.
on:

pull_request:
branches: [ main ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Git Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Setup Java
uses: actions/setup-java@v1
with:
java-version: '15'

- name: Setup Build Cache
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Tests
run: |
./gradlew check
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
.gradle
**/build/
!gradle/wrapper/gradle-wrapper.jar
**/gradle/
gradle.properties


Expand Down
6 changes: 5 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ subprojects {
mavenCentral()
}

tasks.withType<Wrapper> {
gradleVersion = "6.8.2"
// anything else
}

dependencies {
api("org.jetbrains.kotlin:kotlin-reflect")
api("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
Expand All @@ -87,7 +92,6 @@ subprojects {
}

if (project.name != "sample") {
println(project.name)
publishing {
repositories {

Expand Down
Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
5 changes: 5 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import org.springframework.boot.test.context.runner.WebApplicationContextRunner
internal class JsonApiAutoConfigurationTest {

@Test
fun test() {
fun autoconfiguredBeans() {
WebApplicationContextRunner()
.withConfiguration(
AutoConfigurations.of(JsonApiAutoConfiguration::class.java)
Expand Down

0 comments on commit 114142c

Please sign in to comment.