File tree Expand file tree Collapse file tree 4 files changed +41
-3
lines changed
main/java/com/squidex/api/core
test/java/com/squidex/api Expand file tree Collapse file tree 4 files changed +41
-3
lines changed Original file line number Diff line number Diff line change 2020 - name : Compile
2121 run : ./gradlew compileJava
2222
23- publish :
23+ test :
2424 needs : [ compile ]
25+ runs-on : ubuntu-latest
26+ steps :
27+ - name : Checkout repo
28+ uses : actions/checkout@v3
29+
30+ - name : Set up Java
31+ id : setup-jre
32+ uses : actions/setup-java@v1
33+ with :
34+ java-version : " 11"
35+ architecture : x64
36+
37+ - name : Test
38+ run : ./gradlew test
39+ publish :
40+ needs : [ compile, test ]
2541 if : github.event_name == 'push' && contains(github.ref, 'refs/tags/')
2642 runs-on : ubuntu-latest
2743
Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ dependencies {
1616 api ' com.fasterxml.jackson.core:jackson-databind:2.13.0'
1717 api ' com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.12.3'
1818 api ' com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.12.3'
19+ testImplementation ' org.junit.jupiter:junit-jupiter-api:5.8.2'
20+ testImplementation ' org.junit.jupiter:junit-jupiter-engine:5.8.2'
1921}
2022
2123spotless {
@@ -29,12 +31,16 @@ java {
2931 withJavadocJar()
3032}
3133
34+ test {
35+ useJUnitPlatform()
36+ }
37+
3238publishing {
3339 publications {
3440 maven(MavenPublication ) {
3541 groupId = ' io.squidex'
3642 artifactId = ' squidex'
37- version = ' 0.0.5 '
43+ version = ' 0.0.7 '
3844 from components. java
3945 }
4046 }
Original file line number Diff line number Diff line change @@ -23,7 +23,15 @@ private ClientOptions(
2323 OkHttpClient httpClient ,
2424 String appName ) {
2525 this .environment = environment ;
26- this .headers = headers ;
26+ this .headers = new HashMap <>();
27+ this .headers .putAll (headers );
28+ this .headers .putAll (Map .of (
29+ "X-Fern-SDK-Name" ,
30+ "com.squidex.fern:api-sdk" ,
31+ "X-Fern-SDK-Version" ,
32+ "0.0.7" ,
33+ "X-Fern-Language" ,
34+ "JAVA" ));
2735 this .headerSuppliers = headerSuppliers ;
2836 this .httpClient = httpClient ;
2937 this .appName = appName ;
Original file line number Diff line number Diff line change 1+ package com .squidex .api ;
2+
3+ public final class TestClient {
4+ public void test () {
5+ // Add tests here and mark this file in .fernignore
6+ assert true ;
7+ }
8+ }
You can’t perform that action at this time.
0 commit comments