konfigured

command module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2022 License: MIT Imports: 9 Imported by: 0

README

Konfigured

Go Version Badge Go Report Card

Prevent malformed configuration files from being merged to your project. No more breaking builds caused by bad configuration files.

Usage

You can integrate Konfigured to your existing GitHub action workflow by using Namchee/konfigured@<version> in one of your jobs using the YAML syntax.

Below is the example of integrating Konfigured to your workflow in your GitHub action workflow.

on:
  pull_request:

jobs:
  cpr:
    runs-on: ubuntu-latest
    steps:
      - name: Validate configuration file
        uses: Namchee/konfigured@v(version)
        with:
          token: <YOUR_GITHUB_ACCESS_TOKEN_HERE>

Please refer to GitHub workflow syntax for more advanced usage.

Access token is required. Please generate one or use ${{ secrets.GITHUB_TOKEN }} as your access token and the github-actions bot will run the job for you.

Supported File Type

Below are the currently supported configuration files that will be validated by Konfigured:

  • .ini
  • .json
  • .yaml, .yml
  • .toml
  • .hcl

Inputs

You can customize this actions with these following options (fill it on with section):

Name Required? Default Value Description
token true GitHub access token to interact with the GitHub API. It is recommended to store this token with GitHub Secrets. To support automatic close, labeling, and comment report, please grant a write access to the token
newline false false Require all valid configuration file to end with newline.
include false **/*.{json,ini,yaml,yml,toml,hcl} Files to be validated in glob pattern. If this option is omitted, the action will validate all configuration file.

License

This project is licensed under the MIT License

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
mock_client
Package mock_client is a generated GoMock package.
Package mock_client is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL