Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

Commit dc46ee2

Browse files
committed
chore: fix unit tests and re-enable matrix
1 parent e47a9f7 commit dc46ee2

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

.github/workflows/pull-request.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,8 @@ jobs:
3232
strategy:
3333
fail-fast: false
3434
matrix:
35-
# os: [ ubuntu-latest, macos-latest, windows-latest ]
36-
# java: [ 8, 11, 16 ]
37-
os: [ macos-latest ]
38-
java: [ 8 ]
35+
os: [ ubuntu-latest, macos-latest, windows-latest ]
36+
java: [ 8, 11, 16 ]
3937
needs: [ validation, commitlint ]
4038
runs-on: ${{ matrix.os }}
4139
steps:
@@ -68,7 +66,7 @@ jobs:
6866
run: gradlew --info check
6967
- name: Publish Unit Test Results
7068
uses: EnricoMi/publish-unit-test-result-action/composite@v1
71-
if: always() && matrix.os != 'ubuntu-latest'
69+
if: always() && matrix.os == 'macos-latest' && matrix.java == 11
7270
with:
7371
files: '**/build/test-results/**/*.xml'
7472

graphql-spring-boot-autoconfigure/src/test/java/graphql/kickstart/autoconfigure/web/reactive/InvalidJsonRequestTest.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@
1515

1616
@SpringBootTest(
1717
webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT,
18-
properties = "spring.main.web-application-type=reactive")
18+
properties = {
19+
"spring.main.web-application-type=reactive",
20+
"graphql.tools.schema-location-pattern=schema.graphqls"
21+
})
1922
class InvalidJsonRequestTest {
2023

2124
@Autowired private WebTestClient webTestClient;

graphql-spring-boot-autoconfigure/src/test/java/graphql/kickstart/autoconfigure/web/reactive/MonoGenericWrapperAlreadyDefinedTest.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@
2222
@ExtendWith(SpringExtension.class)
2323
@SpringBootTest(
2424
webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT,
25-
properties = "spring.main.web-application-type=reactive")
25+
properties = {
26+
"spring.main.web-application-type=reactive",
27+
"graphql.tools.schema-location-pattern=schema.graphqls"
28+
})
2629
class MonoGenericWrapperAlreadyDefinedTest {
2730

2831
@Autowired private WebTestClient webTestClient;

0 commit comments

Comments
 (0)