Skip to content

[Feature Request]: Github Action for checking backend API compliance #905

@AndreasHae

Description

@AndreasHae

Relevant Scope

Backend specs

Description

Right now, the process of checking API compliance within your CI pipeline (as you should) is a bit tedious to set up.
You have to manually copy the Postman collection and the run-api-tests.sh script and integrate it into your pipeline which involves some trial and error.

Furthermore, once the API spec evolves, there's really no way for me as an implementation maintainer to find out other than periodically checking the repository and copying the new endpoint definitions if they changed.

I believe it's in this project's interest to make this process as frictionless as possible to ensure that implementations are always compliant with the spec.

Describe the solution you'd like

Creating a Github action would be the perfect way to make this process super simple, as it removes the need to manually copy the test files and keep them up to date. The way I imagine it, you could pass the following parameters:

  • Spec version (latest by default)
  • All parameters of test script (base url, email, etc.)

Using a Github action for this purpose could also enable a more complex test suite than a Postman collection because setting it up would not be the maintainers' responsibility anymore, other than including the action in their workflows.

Describe alternatives you've considered

Other CI providers with custom actions like CircleCI could also be considered, but I think Github Actions would be the most obvious choice because most (if not all) realworld implementations are on Github and it's the least hassle to set up.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions