Skip to content

Github Action for (CI) linting Prometheus Operator Kubernetes CRDs

License

Notifications You must be signed in to change notification settings

theodore86/polint-github-action

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

Repository files navigation

Prometheus Operator Linting GitHub Action

Linting

Introduction

This simple GitHub Action allows to run po-lint on any kubernetes prometheus operator CRDs.

Success Criteria

An exit code of 0 is considered a successful execution.

Usage

name: Check Prometheus Operator CRDs
on:
  pull_request: {}

jobs:
  polint:
    name: Prometheus operator linter
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: theodore86/polint-github-action@v2
        with:
          path: './crds'
          exclude: '.*test.*'

Inputs

Name Description Default
path Absolute or relative path to the Prometheus Operator CRDs ./
glob_pattern Rule file extension as glob pattern *.y*ml
exclude Regex to exclude files or folders from linting none