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#v4.1.0:
id: my-org/my-plugin
image-version: v3.2.0This explicitly selects the buildkite/plugin-linter:v3.2.0 image, including when using an older plugin release.
If you want to run it locally on a command line, see the Buildkite Plugin Linter cli tool documentation.
The id of the plugin (e.g. my-org/my-plugin)
The Docker tag of the buildkite/plugin-linter image to use. Default is v3.2.0.
The filename of the plugin’s readme to lint examples on. Default is README.md
Whether invalid examples (for example with invalid options) should not cause the linting to fail. Defaults to false.
Version 4 updates the default linter image from v2.1.0 to v3.1.0. The new image includes current dependency and security updates, improved YAML validation, and native linux/amd64 and linux/arm64 support.
To keep using the previous linter behavior while upgrading the wrapper, set the image version explicitly:
steps:
- label: ":sparkles: Lint"
plugins:
- plugin-linter#v4.1.0:
id: my-org/my-plugin
image-version: v2.1.0To run testing, shellchecks and plugin linting use use bk run with the Buildkite CLI.
bk runOr 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:latestMIT (see LICENSE)