Skip to content
This repository has been archived by the owner on Oct 24, 2022. It is now read-only.

GitHub action to run prometheus operator lint

License

Notifications You must be signed in to change notification settings

p1nkun1c0rns/prometheus-operator-lint-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

prometheus-operator-lint-action

Test

This action ...

Contributions

  • Contributions are welcome!
  • Give ⭐ - if you want to encourage me to work on a project
  • Don't hesitate create issue for new feature you dream of or if you suspect some bug

Project versioning

Project use Semantic Versioning. We recommended to use the latest and specific release version.

In order to keep your project dependencies up to date you can watch this repository (Releases only) or use automatic tools like Dependabot.

Usage

See action.yml

One Path

steps:
- uses: docker://p1nkun1c0rns/prometheus-operator-lint-action:v2.0.3
  env:
    INPUT_PATH: "./"
    INPUT_FILES: ".yaml"
    INPUT_EXCLUDE: "skip"

Multiple Paths

steps:
- uses: docker://p1nkun1c0rns/prometheus-operator-lint-action:v2.0.3
  env:
    INPUT_PATH: "./DEV/monitoring,./TEST/monitoring,./PROD/monitoring"
    INPUT_FILES: "*.yaml"
    INPUT_EXCLUDE: "foobar"

Testing

For testing the bats testing framework is used.

git clone https://github.com/p1nkun1c0rns/prometheus-operator-lint-action.git
./tests/run.bats

License

The scripts and documentation in this project are released under the MIT License

Release

  • create new branch
  • make your changes, if needed
  • commit your changes like
    • Patch Release: fix(script): validate input file to prevent empty files
    • Minor Release: feat(dockerimage): add open for multiple input files
    • Major Release look her