Skip to content

vlauciani/gitlabci-include-for-api-oas-checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 

Repository files navigation

License

OpenApi Spec checker 'include', for .gitlab-ci.yml

Open-Api-Specification checker include: directive, for .gitlab-ci.yml

Usage

This snippet can be included in GitLab CI to check Open-Api-Specification.

In your .gitlab-ci.yml file, remeber to set varaibles:

  • OAS_BASEDIR
  • OAS_FILENAME

Example

# .gitlab-ci.yml
include:
  - remote: 'https://raw.githubusercontent.com/vlauciani/gitlabci-include-for-api-oas-checker/main/api-oas-checker.yml'

variables:
  OAS_DIR: "/home/user/myapp/public"
  OAS_FILENAME: "openapi.yml"
    
stages:
  - . . .
  - api-oas-checker_stage
  - . . .
  
api-oas-checker:
    stage: api-oas-checker_stage
    variables:
      INCLUDE_OAS_BASEDIR: ${OAS_DIR}
      INCLUDE_OAS_FILENAME: ${OAS_FILENAME}

Contribute

Thanks to your contributions!

Here is a list of users who already contributed to this repository:

References

Author

(c) 2021 Valentino Lauciani vlauciani[at]gmail.com

About

.gitlab-ci.yml include-for-api-oas-checker

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published