diff --git a/README.md b/README.md index f7e86b2..430965b 100644 --- a/README.md +++ b/README.md @@ -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" ``` @@ -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" @@ -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" ``` @@ -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$" @@ -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$" @@ -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-" @@ -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 diff --git a/buildkite.yaml b/buildkite.yaml index e010728..6b6ffca 100644 --- a/buildkite.yaml +++ b/buildkite.yaml @@ -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: ~ 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"