diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index af651ed..ffe8580 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -1,29 +1,28 @@ steps: - label: ":shell: Shellcheck" plugins: - shellcheck#v1.3.0: - files: hooks/** + - shellcheck#v1.3.0: + files: hooks/** - label: ":sparkles:" plugins: - plugin-linter#v3.1.0: - id: docker + - plugin-linter#v3.1.0: + id: docker - label: ":docker: :hammer:" plugins: - docker-compose#v4.11.0: - run: tests + - plugin-tester#v1.0.0: ~ - wait - label: run the plugin command: "echo hello world" plugins: - ${BUILDKITE_PULL_REQUEST_REPO:-$BUILDKITE_REPO}#${BUILDKITE_COMMIT}: - image: ubuntu:22.04 + - ${BUILDKITE_PULL_REQUEST_REPO:-$BUILDKITE_REPO}#${BUILDKITE_COMMIT}: + image: ubuntu:22.04 - label: ensure exit codes are propagated command: "exit 3" plugins: - ${BUILDKITE_PULL_REQUEST_REPO:-$BUILDKITE_REPO}#${BUILDKITE_COMMIT}: - image: ubuntu:22.04 + - ${BUILDKITE_PULL_REQUEST_REPO:-$BUILDKITE_REPO}#${BUILDKITE_COMMIT}: + image: ubuntu:22.04 soft_fail: - exit_status: 3 \ No newline at end of file diff --git a/README.md b/README.md index ed6e04d..af90a95 100644 --- a/README.md +++ b/README.md @@ -418,10 +418,16 @@ Example: `0` ## Developing -You can use the [bk cli](https://github.com/buildkite/cli) to run the test pipeline locally, or just the tests using Docker Compose directly: +To run testing, shellchecks and plugin linting use use `bk run` with the [Buildkite CLI](https://github.com/buildkite/cli). ```bash -docker-compose run --rm tests +bk run +``` + +Or if you want to run just the tests, you can use the docker [Plugin Tester](https://github.com/buildkite-plugins/buildkite-plugin-tester): + +```bash +docker run --rm -ti -v "${PWD}":/plugin buildkite/plugin-tester:latest ``` ## License diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index a90f110..0000000 --- a/docker-compose.yml +++ /dev/null @@ -1,6 +0,0 @@ -version: '2' -services: - tests: - image: buildkite/plugin-tester:v4.0.0 - volumes: - - ".:/plugin:ro"