POC: use package cache in migrate job to get package id #3380
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
name: OpenAPIv3 | |
on: | |
push: | |
pull_request: | |
types: [ "opened", "synchronize", "reopened" ] | |
jobs: | |
spec_validation: | |
name: Spec validation | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Spec validation with OpenAPIv3 (docs/v2/openapi.json) | |
run: docker run --rm -v ${PWD}/docs:/docs:Z openapitools/openapi-generator-cli:v6.0.1 validate -i /docs/v2/openapi.json | |
gen_client: | |
name: Generate Python Client | |
runs-on: ubuntu-latest | |
env: | |
working-directory: ./docs | |
needs: [spec_validation] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Generate Python client with OpenAPIv3 (docs/v2/openapi.json) | |
run: docker run --rm -v ${PWD}/docs/v2:/local:Z openapitools/openapi-generator-cli:v6.0.1 generate -i /local/openapi.json -g python -o /local/client | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: Python-Client | |
path: ${{env.working-directory}}/client |