Skip to content

Commit

Permalink
Update tests in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
avaly committed Feb 22, 2023
1 parent 00887cc commit b87c170
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
steps:
- label: ":shell: Shellcheck"
plugins:
shellcheck#v1.1.2:
shellcheck#v1.3.0:
files: hooks/**

- label: ":sparkles:"
plugins:
plugin-linter#v2.0.0:
plugin-linter#v3.1.0:
id: avaly/gcp-secret-manager

- label: ":docker: :hammer:"
plugins:
docker-compose#v3.7.0:
run: tests
docker-compose#v4.10.0:
run: tests
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '2'
version: '3.7'
services:
tests:
image: buildkite/plugin-tester
image: buildkite/plugin-tester:v4.0.0
volumes:
- ".:/plugin:ro"

Expand Down
9 changes: 7 additions & 2 deletions tests/environment.bats
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
#!/usr/bin/env bats

load "$BATS_PATH/load.bash"
setup() {
load "$BATS_PLUGIN_PATH/load.bash"

# Uncomment to enable stub debugging
# export GIT_STUB_DEBUG=/dev/tty
}

environment_hook="$PWD/hooks/environment"

Expand All @@ -27,4 +32,4 @@ environment_hook="$PWD/hooks/environment"

unset BUILDKITE_PLUGIN_GCP_SECRET_MANAGER_CREDENTIALS_FILE
unset BUILDKITE_PLUGIN_GCP_SECRET_MANAGER_ENV_TARGET1
}
}

0 comments on commit b87c170

Please sign in to comment.