wait-for/.woodpecker/test.yml

27 lines
509 B
YAML
Raw Normal View History

2023-08-22 07:07:13 +00:00
---
when:
- event: [pull_request, tag]
- event: [push, manual]
branch:
- ${CI_REPO_DEFAULT_BRANCH}
steps:
- name: lint
2023-08-22 07:07:13 +00:00
image: docker.io/koalaman/shellcheck-alpine:stable
depends_on: []
2023-08-22 07:07:13 +00:00
commands:
- shellcheck ./wait-for
- name: test-ncat
2023-08-22 07:07:13 +00:00
image: docker.io/bats/bats
depends_on: []
2023-08-22 07:07:13 +00:00
commands:
- bats ./wait-for.bats
- name: test-bash
2023-08-22 07:07:13 +00:00
image: docker.io/bats/bats
depends_on: []
2023-08-22 07:07:13 +00:00
commands:
- rm -rf /usr/bin/nc
- bats ./wait-for.bats