Skip to content
This repository was archived by the owner on Oct 14, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,12 @@ jobs:
java-version: '11.0.7'
java-package: jdk
architecture: x64

- uses: actions/setup-node@v1
with:
node-version: '14'

- uses: actions/checkout@v1
- uses: actions/checkout@v2

- name: Build app
run: ./mvnw --batch-mode clean install jacoco:report jacoco:report-aggregate
Expand All @@ -30,6 +34,13 @@ jobs:
../mvnw --batch-mode org.openapitools:openapi-generator-maven-plugin:4.3.0:generate \
-Dopenapi.generator.maven.plugin.inputSpec=META-INF/quarkus-generated-openapi-doc.YAML

- name: Parse openapi doc
run: |
npm i -g speccy
# default values cannot be strings even though ours are
sed -E 's/"([0-9]+)"/\1/g' adoptopenjdk-api-v3-frontend/META-INF/quarkus-generated-openapi-doc.YAML > openapi.yml
speccy lint openapi.yml

- name: Zip Javascript client
run: zip -r javascript-client.zip adoptopenjdk-api-v3-frontend/target/generated-sources/openapi

Expand Down
14 changes: 14 additions & 0 deletions speccy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Output a lot of information about what is happening (wont work if you have quiet on)
# Default stdout = 1
verbose: 2
# Rules specific to the lint command
lint:
# rules files to load
rules:
- strict
# rules to skip
skip:
- info-contact
- operation-operationId
- short-summary
- tag-description