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
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user