Skip to content

Commit 114142c

Browse files
Merge pull request #2 from hndrs/ci-tests
add ci tests
2 parents df416e1 + 0b1fb31 commit 114142c

File tree

6 files changed

+50
-3
lines changed

6 files changed

+50
-3
lines changed

.github/workflows/tests.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Tests
2+
3+
# Controls when the action will run.
4+
on:
5+
6+
pull_request:
7+
branches: [ main ]
8+
9+
# Allows you to run this workflow manually from the Actions tab
10+
workflow_dispatch:
11+
12+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
13+
jobs:
14+
test:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Git Checkout
19+
uses: actions/checkout@v2
20+
with:
21+
fetch-depth: 0
22+
23+
- name: Setup Java
24+
uses: actions/setup-java@v1
25+
with:
26+
java-version: '15'
27+
28+
- name: Setup Build Cache
29+
uses: actions/cache@v2
30+
with:
31+
path: |
32+
~/.gradle/caches
33+
~/.gradle/wrapper
34+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
35+
restore-keys: |
36+
${{ runner.os }}-gradle-
37+
- name: Tests
38+
run: |
39+
./gradlew check

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
.gradle
33
**/build/
44
!gradle/wrapper/gradle-wrapper.jar
5-
**/gradle/
65
gradle.properties
76

87

build.gradle.kts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ subprojects {
6464
mavenCentral()
6565
}
6666

67+
tasks.withType<Wrapper> {
68+
gradleVersion = "6.8.2"
69+
// anything else
70+
}
71+
6772
dependencies {
6873
api("org.jetbrains.kotlin:kotlin-reflect")
6974
api("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
@@ -87,7 +92,6 @@ subprojects {
8792
}
8893

8994
if (project.name != "sample") {
90-
println(project.name)
9195
publishing {
9296
repositories {
9397

gradle/wrapper/gradle-wrapper.jar

57.8 KB
Binary file not shown.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.2-bin.zip
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists

spring-json-api-starter/src/test/kotlin/io/hndrs/api/autoconfigure/JsonApiAutoConfigurationTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import org.springframework.boot.test.context.runner.WebApplicationContextRunner
1212
internal class JsonApiAutoConfigurationTest {
1313

1414
@Test
15-
fun test() {
15+
fun autoconfiguredBeans() {
1616
WebApplicationContextRunner()
1717
.withConfiguration(
1818
AutoConfigurations.of(JsonApiAutoConfiguration::class.java)

0 commit comments

Comments
 (0)