A Buildkite plugin to lint your Buildkite plugins 😱
For a full list of features see the Buildkite Plugin Linter cli tool documentation.
steps:
- label: ":sparkles: Lint"
plugins:
- plugin-linter#v3.3.0:
id: my-org/my-plugin
Note: this will pull the latest version of the Plugin Linter each time it is run.
If you want to run it locally on a command line, see the Buildkite Plugin Linter cli tool documentation.
id
The id of the plugin (e.g. my-org/my-plugin
)
image-version
The docker tag of the buildkite/plugin-linter
image to use. Default is 2.0.3
readme
The filename of the plugin’s readme to lint examples on. Default is README.md
skip-invalid
(boolean)Whether invalid examples (for example with invalid options) should not cause the linting to fail. Defaults to false.
To run testing, shellchecks and plugin linting use use bk run
with the Buildkite CLI.
bk run
Or if you want to run just the tests, you can use the docker Plugin Tester:
docker run --rm -ti -v "${PWD}":/plugin buildkite/plugin-tester:latest
MIT (see LICENSE)