Skip to content

Commit

Permalink
Merge pull request #49 from buildkite-plugins/toote_plugin_tester
Browse files Browse the repository at this point in the history
Use plugin tester
  • Loading branch information
pzeballos authored Apr 10, 2023
2 parents 559c387 + 05459cc commit 570d26b
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 20 deletions.
22 changes: 14 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ steps:
- label: "🔨 Test"
command: "make test"
plugins:
- test-collector#v1.7.0:
- test-collector#v1.8.0:
files: "test/junit-*.xml"
format: "junit"
```
Expand All @@ -115,7 +115,7 @@ steps:
- label: "🔨 Test"
command: "make test"
plugins:
- test-collector#v1.7.0:
- test-collector#v1.8.0:
files:
- "test-data-*.json"
format: "json"
Expand All @@ -137,7 +137,7 @@ steps:
- label: "🔍 Test Analytics"
command: buildkite-agent artifact download tests-*.xml
plugins:
- test-collector#v1.7.0:
- test-collector#v1.8.0:
files: "tests-*.xml"
format: "junit"
```
Expand All @@ -151,7 +151,7 @@ steps:
- label: "🔨 Test"
command: "make test"
plugins:
- test-collector#v1.7.0:
- test-collector#v1.8.0:
files: "test-data-*.json"
format: "json"
branches: "-qa$"
Expand All @@ -164,7 +164,7 @@ steps:
- label: "🔨 Test"
command: "make test"
plugins:
- test-collector#v1.7.0:
- test-collector#v1.8.0:
files: "test-data-*.json"
format: "json"
exclude-branches: "^legacy$"
Expand All @@ -177,7 +177,7 @@ steps:
- label: "🔨 Test"
command: "make test"
plugins:
- test-collector#v1.7.0:
- test-collector#v1.8.0:
files: "test-data-*.json"
format: "json"
branches: "^stage-"
Expand All @@ -187,10 +187,16 @@ steps:

## ⚒ Developing

You can use the [bk cli](https://github.com/buildkite/cli) to run the whole pipeline locally, or just the tests using Docker Compose directly:
You can use the [bk cli](https://github.com/buildkite/cli) to run the [pipeline](buildkite.yaml) locally:

```bash
docker-compose run --rm tests
bk local 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
```

## 👩‍💻 Contributing
Expand Down
11 changes: 5 additions & 6 deletions buildkite.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
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: test-collector
- plugin-linter#v3.1.0:
id: test-collector

- label: ":docker: :hammer:"
plugins:
docker-compose#v4.11.0:
run: tests
- plugin-tester#v1.0.0: ~
6 changes: 0 additions & 6 deletions docker-compose.yml

This file was deleted.

0 comments on commit 570d26b

Please sign in to comment.