From b685f3616e8e801c44b8c3a38fb5e7b828febde5 Mon Sep 17 00:00:00 2001 From: moilanik Date: Sun, 14 Jun 2026 07:45:20 +0300 Subject: [PATCH] fix(quality-gate): tee bats output for debug visibility 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 --- .gitea/workflows/ci.yml | 2 ++ .gitea/workflows/quality-gate.yml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 6b40c0a..79d3bc1 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -6,6 +6,7 @@ on: jobs: load-config: + name: Load gitea-env.conf to pipeline env uses: niko/gitea-ci-library/.gitea/workflows/config-provider.yml@main with: config_path: .gitea/workflows/gitea-env.conf @@ -22,6 +23,7 @@ jobs: cucumber-node-image: node:22 main: + name: Build & Push Artifact if: github.ref == 'refs/heads/main' needs: [load-config] uses: niko/gitea-ci-library/.gitea/workflows/build_publish-artifact.yml@feture/docker-kyky diff --git a/.gitea/workflows/quality-gate.yml b/.gitea/workflows/quality-gate.yml index 6ae0114..64116a7 100644 --- a/.gitea/workflows/quality-gate.yml +++ b/.gitea/workflows/quality-gate.yml @@ -58,7 +58,7 @@ jobs: --entrypoint bash ${{ inputs.bats-image }} \ -c 'apk add -q lsof python3 jq curl ruby && \ 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=$? bash .ci/.gitea/scripts/bats-report.sh "reports/${GITHUB_SHA:0:8}/bats" || true