Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add OpenAPI Test workflow to validate API extraction #145

Merged
merged 2 commits into from
Aug 25, 2023

Conversation

afritzler
Copy link
Member

@afritzler afritzler commented Aug 24, 2023

Proposed Changes

Run the openapi-extrator in the sample folder an ensure a test extraction against a real api-server.

@afritzler afritzler requested a review from a team as a code owner August 24, 2023 14:56
@afritzler afritzler changed the title ci: add OpenAPI Test workflow to validate API extraction Add OpenAPI Test workflow to validate API extraction Aug 24, 2023
@github-actions github-actions bot added size/M enhancement New feature or request labels Aug 24, 2023
@afritzler afritzler force-pushed the enh/add-openapi-extration-workflow branch 8 times, most recently from f62995d to fd93470 Compare August 24, 2023 15:53
- Add a new file `.github/workflows/openapi_test.yml`
- Define a workflow named `OpenAPI Test`
- Set the trigger for the workflow to `pull_request` events
- Exclude specific paths from the trigger
- Define a job named `test_openapi_extraction`
- Set the runner for the job to `ubuntu-latest`
- Add steps to checkout the repository, setup Go environment, build the project, and get the `onmetal-api` repository
- Run the `openapi-extractor` tool with specific options
- Check if `swagger.json` and `v3` directory exist and list files in `v3` directory
- Check if each `json` file in the `v3` directory is not empty

Signed-off-by: Andreas Fritzler <andreas.fritzler@sap.com>
@afritzler afritzler force-pushed the enh/add-openapi-extration-workflow branch from fd93470 to 6343a73 Compare August 24, 2023 15:58
@github-actions github-actions bot added size/XXL and removed size/M labels Aug 25, 2023
@afritzler afritzler merged commit 9edcfbf into main Aug 25, 2023
@afritzler afritzler deleted the enh/add-openapi-extration-workflow branch August 25, 2023 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request size/XXL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant