Lint your feature flag config files
The go-feature-flag/gofeatureflag-lint-action
Github action performs the
linting of the GO Feature Flag flag config file. It
checks for errors in the config file and returns the error message if any.
on: [push]
jobs:
gofeatureflag-lint-job:
runs-on: ubuntu-latest
name: A demo job to run gofeatureflag-lint on a config file
steps:
## checkout the code from the repository
- name: Checkout
uses: actions/checkout@v3
## run the gofeatureflag-lint action
- name: Lint the config file
uses: go-feature-flag/gofeatureflag-lint-action@v1
## set the input parameters for the action
with:
flag-file: ./config/flag-config.yaml
format: yaml
Name | Required | Defaults | Description |
---|---|---|---|
flag-file | false | config/flag-config.yaml |
Absolute or relative path of the file with name |
format | false | yaml |
config file of type yaml , toml , or json |
Name | Description |
---|---|
lint-message | empty if no error is found, else the value will be the error message |
Like this project? Please give it a โ on our GitHub!
This project is licensed under the MIT License.