-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pulling the separate openapi job - this gets checked in python-tests …
…anyway
- Loading branch information
Showing
1 changed file
with
0 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,30 +78,3 @@ jobs: | |
uses: codecov/[email protected] | ||
with: | ||
file: ./coverage.xml | ||
|
||
openapi-generated-client-check: | ||
# This job checks that the output of openapi-generator-typescript-axios that | ||
# is checked into version control is up-to-date. | ||
env: | ||
OPENAPI_SCHEMA: ./openapi.yaml | ||
GENERATOR_IGNORE_FILE: ./frontends/api/.openapi-generator-ignore | ||
GENERATOR_OUTPUT_DIR_CI: ./frontends/api/tmp/generated | ||
GENERATOR_OUTPUT_DIR_VC: ./frontends/api/src/generated | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Generate Fresh API Client | ||
uses: openapi-generators/openapitools-generator-action@v1 | ||
with: | ||
generator: typescript-axios | ||
openapi-file: ./openapi.yaml | ||
generator-tag: v6.6.0 | ||
command-args: | | ||
--output $GENERATOR_OUTPUT_DIR_CI \ | ||
--ignore-file-override $GENERATOR_IGNORE_FILE \ | ||
-c scripts/openapi-configs/typescript-axios.yaml | ||
- name: Check VC client is up-to-date | ||
run: | | ||
diff $GENERATOR_OUTPUT_DIR_CI $GENERATOR_OUTPUT_DIR_VC \ | ||
|| { echo "OpenAPI spec is out of date. Please regenerate via ./scripts/generate_openapi.sh"; exit 1; } |