mirror of
https://github.com/versity/versitygw.git
synced 2026-05-02 02:05:43 +00:00
test: initial bats test tagging system, shellcheck fix
This commit is contained in:
2
.github/workflows/docker-bats.yml
vendored
2
.github/workflows/docker-bats.yml
vendored
@@ -26,3 +26,5 @@ jobs:
|
||||
run: |
|
||||
docker compose -f tests/docker-compose-bats.yml --project-directory . \
|
||||
up --exit-code-from s3api_np_only s3api_np_only
|
||||
docker compose -f tests/docker-compose-bats.yml --project-directory . \
|
||||
up --exit-code-from openssl_only openssl_only
|
||||
|
||||
12
.github/workflows/shellcheck.yml
vendored
12
.github/workflows/shellcheck.yml
vendored
@@ -14,4 +14,14 @@ jobs:
|
||||
- name: Run checks
|
||||
run: |
|
||||
shellcheck --version
|
||||
shellcheck -e SC1091 tests/*.sh tests/*/*.sh
|
||||
overall_rc=0
|
||||
while IFS= read -r -d '' f; do
|
||||
rc=0
|
||||
echo "CHECKING $f"
|
||||
shellcheck -S error -e SC1091 "$f" || rc=$?
|
||||
echo "exit=$rc file=$f"
|
||||
if [ "$rc" -ne 0 ]; then
|
||||
overall_rc="$rc"
|
||||
fi
|
||||
done < <(find . \( -path './tests/*.sh' -o -path './tests/*/*.sh' \) -print0)
|
||||
exit "$overall_rc"
|
||||
|
||||
Reference in New Issue
Block a user