Skip to content

Commit a11ef60

Browse files
Added compatibility test for SmallRye GraphQL (#657)
1 parent fc0db41 commit a11ef60

34 files changed

+1533
-0
lines changed

.github/workflows/comment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ on:
3535
- "Sangria Test"
3636
- "Strawberry GraphQL Test"
3737
- "Swift Graphiti Test"
38+
- "smallrye-graphql Test"
3839
types:
3940
- completed
4041

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: smallrye-graphql Test
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
paths:
8+
- 'implementations/smallrye-graphql/**'
9+
10+
jobs:
11+
compatibility:
12+
uses: ./.github/workflows/test-subgraph.yaml
13+
with:
14+
# should match folder name
15+
library: "smallrye-graphql"
16+
17+
pr-info:
18+
uses: ./.github/workflows/save-pr-info.yaml
19+
with:
20+
pr_number: ${{ github.event.number }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ results.*
3535
*.ipr
3636
*.iws
3737
*.jar
38+
!maven-wrapper.jar
3839
*.sw?
3940
*~
4041
.#*
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Dockerfile
2+
target
Binary file not shown.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
wrapperVersion=3.3.2
18+
distributionType=bin
19+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.9/apache-maven-3.9.9-bin.zip
20+
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.3.2/maven-wrapper-3.3.2.jar
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
FROM registry.access.redhat.com/ubi8/openjdk-17:1.20
2+
3+
ENV LANGUAGE='en_US:en'
4+
5+
# Copy all the required build files
6+
COPY .mvn ./.mvn
7+
COPY src ./src
8+
COPY mvnw ./
9+
COPY mvnw.cmd ./
10+
COPY pom.xml ./
11+
12+
# Package it up
13+
RUN ./mvnw package
14+
15+
# We make four distinct layers so if there are application changes the library layers can be re-used
16+
RUN cp -r target/quarkus-app/lib/ /deployments/lib/ && chown -R 185:185 /deployments/lib/
17+
RUN cp target/quarkus-app/*.jar /deployments/ && chown -R 185:185 /deployments/
18+
RUN cp -r target/quarkus-app/app/ /deployments/app/ && chown -R 185:185 /deployments/app/
19+
RUN cp -r target/quarkus-app/quarkus/ /deployments/quarkus/ && chown -R 185:185 /deployments/quarkus/
20+
21+
EXPOSE 4001
22+
USER 185
23+
ENV JAVA_OPTS_APPEND="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
24+
ENV JAVA_APP_JAR="/deployments/quarkus-run.jar"
25+
26+
ENTRYPOINT [ "/opt/jboss/container/java/run/run-java.sh" ]
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
services:
2+
products:
3+
# must be relative to the root of the project
4+
build: implementations/smallrye-graphql
5+
ports:
6+
- 4001:4001
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"fullName": "SmallRye GraphQL",
3+
"language": "Java / Kotlin",
4+
"documentation": "https://smallrye.io/smallrye-graphql/latest/",
5+
"description": "Implementation for MicroProfile GraphQL",
6+
"type": "Code first",
7+
"repository": {
8+
"name": "smallrye-graphql",
9+
"owner": "smallrye",
10+
"link": "https://github.com/smallrye/smallrye-graphql"
11+
}
12+
}

0 commit comments

Comments
 (0)