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