Feature/yksinkertaistetaan raportointi logiikkaa (#22)
unit-tests Bats test report
CI Main / Bats tests (push) Successful in 1m21s
ci-docker-build-push Docker build & push 0.2.9 OK
CI Main / Build & Push Docker (push) Successful in 40s
CI Main / Report Summary (push) Successful in 5s
CI Main / Move provider version tag (push) Successful in 12s
CI Main / Load example-gitea-env.conf to pipeline env (push) Successful in 18s
CI Main / Check existing artifact (push) Successful in 12s
acc-tests Cucumber test report
CI Main / Cucumber tests (push) Successful in 2m3s

Co-authored-by: moilanik <niko.moilanen@tietoevry.com>
Reviewed-on: #22
This commit was merged in pull request #22.
This commit is contained in:
2026-06-18 12:55:02 +03:00
parent 65d385f9b9
commit 737b2fc3f2
11 changed files with 357 additions and 180 deletions
+7 -28
View File
@@ -6,8 +6,9 @@ on:
required: true
type: string
cucumber-node-image:
required: true
required: false
type: string
default: gitea.app.keskikuja.site/niko/ci-cucumber:latest
secrets:
GITEA_TOKEN:
required: true
@@ -33,36 +34,14 @@ jobs:
path: .ci
- name: Run cucumber tests
id: cucumber-tests
shell: bash
run: |
mkdir -p "reports/${GITHUB_SHA:0:8}/cucumber"
set +e
mkdir -p reports/cucumber
npx cucumber-js \
--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}
--format json:reports/cucumber/report.json \
--format html:reports/cucumber/report.html 2>&1
- name: Publish cucumber reports
if: always()
run: bash .ci/scripts/publish-git-pages.sh cucumber
- name: Report status
- name: Report
if: always()
shell: bash
run: |
if [ "${CUCUMBER_EXIT}" = "0" ]; then
if [ -f "reports/${GITHUB_SHA:0:8}/cucumber/index.html" ]; then
bash .ci/scripts/report-status.sh success "Link to Cucumber reports" acc-tests cucumber
else
bash .ci/scripts/report-status.sh success "Link to Cucumber reports" acc-tests
fi
else
if [ -f "reports/${GITHUB_SHA:0:8}/cucumber/index.html" ]; then
bash .ci/scripts/report-status.sh failure "Link to Cucumber reports" acc-tests cucumber
else
bash .ci/scripts/report-status.sh failure "Link to Cucumber reports" acc-tests
fi
fi
run: bash .ci/scripts/ci-report.sh "Cucumber test report" acc-tests cucumber