fix(quality-gate): tee bats output for debug visibility
CI / Load gitea-env.conf to pipeline env (push) Successful in 13s
ci-bats Bats tests
ci-cucumber Cucumber tests
CI / Quality Gate (push) Failing after 1m20s
CI / Build & Push Artifact (push) Has been skipped

Replace `>` redirect with `2>&1 | tee` so bats test output
appears in the pipeline log while still saving to results.txt.

chore(ci.yml): name load-config and main jobs for clarity
This commit is contained in:
moilanik
2026-06-14 07:45:20 +03:00
parent afe8a0fe38
commit b685f3616e
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -6,6 +6,7 @@ on:
jobs: jobs:
load-config: load-config:
name: Load gitea-env.conf to pipeline env
uses: niko/gitea-ci-library/.gitea/workflows/config-provider.yml@main uses: niko/gitea-ci-library/.gitea/workflows/config-provider.yml@main
with: with:
config_path: .gitea/workflows/gitea-env.conf config_path: .gitea/workflows/gitea-env.conf
@@ -22,6 +23,7 @@ jobs:
cucumber-node-image: node:22 cucumber-node-image: node:22
main: main:
name: Build & Push Artifact
if: github.ref == 'refs/heads/main' if: github.ref == 'refs/heads/main'
needs: [load-config] needs: [load-config]
uses: niko/gitea-ci-library/.gitea/workflows/build_publish-artifact.yml@feture/docker-kyky uses: niko/gitea-ci-library/.gitea/workflows/build_publish-artifact.yml@feture/docker-kyky
+1 -1
View File
@@ -58,7 +58,7 @@ jobs:
--entrypoint bash ${{ inputs.bats-image }} \ --entrypoint bash ${{ inputs.bats-image }} \
-c 'apk add -q lsof python3 jq curl ruby && \ -c 'apk add -q lsof python3 jq curl ruby && \
bats tests/' \ bats tests/' \
> "reports/${GITHUB_SHA:0:8}/bats/results.txt" 2>&1 2>&1 | tee "reports/${GITHUB_SHA:0:8}/bats/results.txt"
BATS_EXIT=$? BATS_EXIT=$?
bash .ci/.gitea/scripts/bats-report.sh "reports/${GITHUB_SHA:0:8}/bats" || true bash .ci/.gitea/scripts/bats-report.sh "reports/${GITHUB_SHA:0:8}/bats" || true