services: plugin-lint: image: buildkite/plugin-linter:v3.0.0 command: [ '--id', 'elastic/oblt-cli', '--path', '/plugin' ] volumes: - ".:/plugin:ro,z" test: build: context: . dockerfile: Dockerfile volumes: - ".:/plugin:ro,z" command: ['bats', 'tests/unit'] integration-test: build: context: . dockerfile: Dockerfile volumes: - ".:/plugin:ro,z" environment: - GH_TOKEN - GITHUB_TOKEN - VAULT_GITHUB_TOKEN - CI command: [ 'bats', 'tests/integration' ] test-ps: build: context: . dockerfile: Dockerfile.ps volumes: - ".:/plugin:ro,z" working_dir: /plugin command: ["pwsh", "-Command", "Invoke-Pester tests/unit/*.Tests.ps1 -Output Detailed"] shellcheck: image: koalaman/shellcheck-alpine:v0.11.0 entrypoint: ["sh", "-c"] command: > " echo 'running shellcheck' ; (find hooks .buildkite/scripts -type f -not -name '*.ps1' 2>/dev/null | xargs shellcheck --shell=bash --external-sources --color=always --format=gcc) && echo 'shellcheck passed' || (echo 'shellcheck failed' && exit 1); " working_dir: /plugin volumes: - ".:/plugin:ro,z"