Skip to content

sparkleGoat/pre-commit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Pre-commit-hooks

pre-commit hooks for various useful devops tools

Adds to https://github.com/dj-wasabi/pre-commit-hooks, simple pass through of helm-unittest options, not just .

Table of contents

pre-commit

Hooks

This pre-commit-hooks repository contains the following hooks.

Hook name Description
helm-unittest This hook run helm unittest from quintush/helm-unittest

The hook name can be used with the .pre-commit-config.yaml as id. See usage for an example.

Installation

brew install pre-commit

Prerequisites Documentation

The following needs to be set in order to get hook to work.

Install the HELM Unittests

helm plugin install https://github.com/quintush/helm-unittest

Usage

Create a file named .pre-commit-config.yaml in the repository.

Add something like the following:

---
repos:
- repo: https://github.com/sparkleGoat/pre-commit
  rev: v0.0.7
  hooks:
    - id: helm-unittest
      args:
        - "-3 test-service"

When the file is added, run the following command to install it:

pre-commit install

Now, when you do a git commit the hooks are executed. You can manually run the hooks by executing the following command:

pre-commit run -a

About

pre-commit hooks for various useful devops tools

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages