-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Continuous integration improvements #2789
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
445932d
833bf7e
fe0b2db
2b73a1c
4146505
2245843
61755e9
ef7ce6f
5bd2ba3
05c73a3
7e69fcd
ac7747b
fa01876
5d6adb8
a1522d8
5053eb3
58b6eb5
bdcdb3c
3178fdc
fd940e0
90c43b2
ddcb61a
b524fae
a8f6657
eff359e
aa3c723
674d2a1
92ef37c
15e1621
96cd7c5
9d03567
a1f4f84
45c74bc
67bdae5
a6d8dae
40acc4b
8d3b8af
a6fa239
5b0e362
2c8d6bb
4b98e68
342c395
e5ce6d1
7336115
83ffada
55fed54
88fb85f
4e12c3c
f23a24f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,7 +15,6 @@ jobs: | |
| MAVEN_CENTRAL_USER: ${{ secrets.MAVEN_CENTRAL_USER }} | ||
| MAVEN_CENTRAL_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }} | ||
| RELEASE_VERSION: ${{ github.event.inputs.version }} | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: gradle/wrapper-validation-action@v1 | ||
|
|
@@ -24,5 +23,15 @@ jobs: | |
| with: | ||
| java-version: '11' | ||
| distribution: 'corretto' | ||
| - name: build test and publish | ||
| run: ./gradlew assemble && ./gradlew check --info && ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository -x check --info --stacktrace | ||
| - name: Build | ||
| uses: gradle/gradle-build-action@v2 | ||
| with: | ||
| arguments: assemble | ||
| - name: Test | ||
| uses: gradle/gradle-build-action@v2 | ||
| with: | ||
| arguments: check --info | ||
| - name: Publish | ||
| uses: gradle/gradle-build-action@v2 | ||
| with: | ||
| arguments: publishToSonatype closeAndReleaseSonatypeStagingRepository -x check --info --stacktrace | ||
|
Comment on lines
+26
to
+37
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Facilitates better caching |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| distributionBase=GRADLE_USER_HOME | ||
| distributionPath=wrapper/dists | ||
| distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-bin.zip | ||
| distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip | ||
| networkTimeout=10000 | ||
| zipStoreBase=GRADLE_USER_HOME | ||
| zipStorePath=wrapper/dists |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,4 +13,8 @@ pluginManagement { | |
| } | ||
| } | ||
|
|
||
| plugins { | ||
| id 'org.gradle.toolchains.foojay-resolver-convention' version '0.7.0' | ||
| } | ||
|
|
||
|
Comment on lines
+16
to
+19
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Has to be defined in the Makes sure the relevant JDK is automatically downloaded again. This was changed in a more recent version (of Gradle), it used to download the JDK automatically if it was missing--now we need this plugin |
||
| rootProject.name = 'graphql-java' | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -723,39 +723,39 @@ type Object1 { | |
|
|
||
| then: | ||
| newSchema == """\ | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. stripIndent behaves differently on Java 16+ because it overshadows the Groovy method that was present on String before that. Also the case for the other two tests |
||
| schema @Directive1(argument1 : "stringValue1"){ | ||
| query: Object1 | ||
| } | ||
| directive @Directive1(argument1: String! = "stringValue4") repeatable on SCHEMA | SCALAR | OBJECT | FIELD_DEFINITION | ARGUMENT_DEFINITION | INTERFACE | UNION | ENUM | ENUM_VALUE | INPUT_OBJECT | INPUT_FIELD_DEFINITION | ||
| interface Interface1 @Directive1(argument1 : "stringValue12") { | ||
| field2: String | ||
| field3: Enum1 | ||
| } | ||
| union Union1 @Directive1(argument1 : "stringValue21") = Object2 | ||
| type Object1 @Directive1(argument1 : "stringValue8") { | ||
| field1: Interface1 @Directive1(argument1 : "stringValue9") | ||
| field4: Union1 @deprecated | ||
| } | ||
| type Object2 implements Interface1 { | ||
| field2: String | ||
| field3: Enum1 | ||
| field5(argument2: InputObject1): String | ||
| } | ||
| enum Enum1 @Directive1(argument1 : "stringValue15") { | ||
| EnumValue1 @Directive1(argument1 : "stringValue18") | ||
| EnumValue2 | ||
| } | ||
| input InputObject1 @Directive1(argument1 : "stringValue24") { | ||
| inputField1: Int @Directive1(argument1 : "stringValue27") | ||
| } | ||
| """.stripIndent() | ||
| schema @Directive1(argument1 : "stringValue1"){ | ||
| query: Object1 | ||
| } | ||
|
|
||
| directive @Directive1(argument1: String! = "stringValue4") repeatable on SCHEMA | SCALAR | OBJECT | FIELD_DEFINITION | ARGUMENT_DEFINITION | INTERFACE | UNION | ENUM | ENUM_VALUE | INPUT_OBJECT | INPUT_FIELD_DEFINITION | ||
|
|
||
| interface Interface1 @Directive1(argument1 : "stringValue12") { | ||
| field2: String | ||
| field3: Enum1 | ||
| } | ||
|
|
||
| union Union1 @Directive1(argument1 : "stringValue21") = Object2 | ||
|
|
||
| type Object1 @Directive1(argument1 : "stringValue8") { | ||
| field1: Interface1 @Directive1(argument1 : "stringValue9") | ||
| field4: Union1 @deprecated | ||
| } | ||
|
|
||
| type Object2 implements Interface1 { | ||
| field2: String | ||
| field3: Enum1 | ||
| field5(argument2: InputObject1): String | ||
| } | ||
|
|
||
| enum Enum1 @Directive1(argument1 : "stringValue15") { | ||
| EnumValue1 @Directive1(argument1 : "stringValue18") | ||
| EnumValue2 | ||
| } | ||
|
|
||
| input InputObject1 @Directive1(argument1 : "stringValue24") { | ||
| inputField1: Int @Directive1(argument1 : "stringValue27") | ||
| } | ||
| """ | ||
| } | ||
|
|
||
| def "query with directives"() { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Facilitates better caching