Skip to content

Commit c18015c

Browse files
authored
Add petstore tests in groovy workflow (#22936)
* add petstore testsin groovy workflow * use localhost * update samples * update tests * import * fix ignore * update tests * update tests * update * update * comment out
1 parent 7eeab03 commit c18015c

File tree

8 files changed

+789
-36
lines changed

8 files changed

+789
-36
lines changed

.github/workflows/samples-groovy.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@ jobs:
2020
matrix:
2121
sample:
2222
- samples/client/petstore/groovy
23+
services:
24+
petstore-api:
25+
image: swaggerapi/petstore
26+
ports:
27+
- 80:8080
28+
env:
29+
SWAGGER_HOST: http://petstore.swagger.io
30+
SWAGGER_BASE_PATH: /v2
2331
steps:
2432
- uses: actions/checkout@v5
2533
- uses: actions/setup-java@v5
@@ -41,6 +49,6 @@ jobs:
4149
gradle-version: ${{ env.GRADLE_VERSION }}
4250
build-root-directory: ${{ matrix.sample }}
4351
arguments: wrapper
44-
- name: Build
52+
- name: Build & Test
4553
working-directory: ${{ matrix.sample }}
46-
run: ./gradlew build -x test
54+
run: ./gradlew build

bin/configs/groovy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
generatorName: groovy
22
outputDir: samples/client/petstore/groovy
3-
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
3+
inputSpec: modules/openapi-generator/src/test/resources/3_0/groovy/petstore.yaml
44
templateDir: modules/openapi-generator/src/main/resources/Groovy
55
additionalProperties:
66
hideGenerationTimestamp: "true"

0 commit comments

Comments
 (0)