bats moun non read only
CI / load-config (push) Successful in 11s
ci-bats Bats tests
ci-cucumber Cucumber tests
CI / Quality Gate (push) Failing after 1m15s
CI / main (push) Has been skipped

This commit is contained in:
moilanik
2026-06-14 07:36:34 +03:00
parent 3e7e2e7473
commit afe8a0fe38
3 changed files with 45 additions and 12 deletions
+1
View File
@@ -11,6 +11,7 @@ jobs:
config_path: .gitea/workflows/gitea-env.conf
feature:
name: Quality Gate
if: github.ref != 'refs/heads/main'
needs: [load-config]
uses: niko/gitea-ci-library/.gitea/workflows/quality-gate.yml@feture/docker-kyky
+7 -11
View File
@@ -52,7 +52,7 @@ jobs:
set +e
mkdir -p "reports/${GITHUB_SHA:0:8}/bats"
docker run --rm \
-v "$(pwd):/repo:ro" \
-v "$(pwd):/repo" \
-v "$(pwd)/reports/${GITHUB_SHA:0:8}/bats:/reports" \
-w /repo \
--entrypoint bash ${{ inputs.bats-image }} \
@@ -95,17 +95,7 @@ jobs:
--format json:"reports/${GITHUB_SHA:0:8}/cucumber/report.json" \
--format html:"reports/${GITHUB_SHA:0:8}/cucumber/index.html" 2>&1
CUCUMBER_EXIT=$?
echo "CUCUMBER_EXIT=${CUCUMBER_EXIT}" >> "${GITHUB_ENV}"
exit ${CUCUMBER_EXIT}
- name: Publish cucumber reports
if: always()
run: bash .ci/scripts/publish-git-pages.sh cucumber
- name: Set cucumber commit status
if: always()
shell: bash
run: |
STATE="success"
[ "${CUCUMBER_EXIT}" != "0" ] && STATE="failure"
if [ -f "reports/${GITHUB_SHA:0:8}/cucumber/index.html" ]; then
@@ -114,6 +104,12 @@ jobs:
bash .ci/scripts/report-status.sh "${STATE}" "Cucumber tests" ci-cucumber
fi
exit ${CUCUMBER_EXIT}
- name: Publish cucumber reports
if: always()
run: bash .ci/scripts/publish-git-pages.sh cucumber
build:
runs-on: ubuntu-latest
needs: [bats, cucumber]