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

feat: add CI workflow #1

Merged
merged 2 commits into from
May 13, 2024
Merged

feat: add CI workflow #1

merged 2 commits into from
May 13, 2024

Conversation

YOU54F
Copy link
Member

@YOU54F YOU54F commented May 13, 2024

Add a CI workflow that will

  • Pull down a sample OpenAPI document
  • Lint with Spectral
  • Mock with Prism
  • Test Mock with SoapUI
  • Generate a consumer project with Swagger-Code-Generators
    • Project utilises a modified template to generate Pact consumer contract test
  • Runs the consumer project to generate the Pact contracts
  • Validates Pact contract against OpenAPI with @pactflow/swagger-mock-validator
  • Retrieves a sample provider codebase, developed outside of the OpenAPI document (may suffer from provider drift)
    • Functionally test provider with SoapUI, leverage test suite previously pointed at Prism mock
    • Runs Pact provider verification tests which replay the consumers interactions, against our running provider

@YOU54F YOU54F requested a review from frankkilcommins May 13, 2024 16:23
@YOU54F YOU54F changed the title Ci feat: add CI workflow May 13, 2024
Copy link
Member

@frankkilcommins frankkilcommins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - will look to change the SHUB/APIHub one to do something similar and leverage the SHUB CLI.

@YOU54F YOU54F merged commit 167b6c4 into main May 13, 2024
1 check passed
@YOU54F YOU54F deleted the ci branch June 20, 2024 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants