diff --git a/Buildkite.md b/Buildkite.md new file mode 100644 index 0000000..5008b2b --- /dev/null +++ b/Buildkite.md @@ -0,0 +1,14 @@ +Buildkite provides [a plugin dedicated to run `shellcheck`](https://github.com/buildkite-plugins/shellcheck-buildkite-plugin). + +Simply add this step to your Buildkite pipeline (`.buildkite/pipeline.yml`) to use it: + +```yaml +steps: + - label: ":shell: Shellcheck" + plugins: + shellcheck#v1.1.2: + # List the files you want to lint + files: ["**/*.sh"] + # additional options to pass to shellcheck (optional) + options: ["-x", "-P", "SCRIPTDIR"] +```