Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 9 additions & 10 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
@@ -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
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 0 additions & 6 deletions docker-compose.yml

This file was deleted.