Skip to content

jaychang99/github-actions-openapi-diff

Repository files navigation

Github Actions Openapi Diff


A Workflow that runs on pull requests and diffs any api changes based on openapi.json file in project's root directory.


Start Development Server

  • To start developing, two processes must be running in parallel
npm install
npm run package:watch:local # This compiles ts files and watches for changes
npm run dev:nodemon # This starts a local development server on localhost:5050
  • In local development environment, source code is configured to get...
    • base branch's openapi info from .local/examples/openapi-base.json
    • HEAD's openapi info from .local/examples/openapi-head.json
  • Make a directory as follows and add openapi-base.json, openapi-head.json of your choice for development.
    • These files MUST be openapi V3-compatible.
(project root)...
.local
  examples
    openapi-base.json
    openapi-head.json
...

Publish Action

  • All compiled and bundled js files must be commited together in the repository under dist/ directory.
  • To format, lint, test, package sources run
npm run all

This Workflow was generated by using actions/typescript-action