argha
CI / Load gitea-env.conf to pipeline env (push) Successful in 12s
ci-check Build version 0.1.0 required
ci-cucumber Cucumber tests
ci-bats Bats tests
ci-build Build complete
CI / Build & Push Artifact (push) Successful in 2m29s

This commit is contained in:
moilanik
2026-06-14 14:07:13 +03:00
parent 95f0aca47e
commit 2d3fd96768
2 changed files with 41 additions and 39 deletions
+18 -15
View File
@@ -33,13 +33,14 @@ jobs:
repository: niko/gitea-ci-library
path: .ci
- name: Pending
run: bash .ci/scripts/report-status.sh pending "Validating CI config..." ci-validate
- name: Validate CI config
id: validate
run: |
bash .ci/scripts/report-status.sh pending "Validating CI config..." ci-validate-running
bash .ci/scripts/ci-validate.sh
run: bash .ci/scripts/ci-validate.sh
- name: Report validate status
- name: Report status
if: always()
run: |
if [ "${{ steps.validate.outcome }}" = "success" ]; then
@@ -58,11 +59,13 @@ jobs:
repository: niko/gitea-ci-library
path: .ci
- name: Pending
run: bash .ci/scripts/report-status.sh pending "Running Bats tests..." ci-bats
- name: Run bats tests
id: bats-tests
shell: bash
run: |
bash .ci/scripts/report-status.sh pending "Running Bats tests..." ci-bats-running
docker volume create bats-workspace
tar c . | docker run --rm -i -v bats-workspace:/data alpine tar x -C /data
mkdir -p "reports/${GITHUB_SHA:0:8}/bats"
@@ -83,7 +86,7 @@ jobs:
if: always()
run: bash .ci/scripts/publish-git-pages.sh bats
- name: Set bats commit status
- name: Report status
if: always()
run: |
if [ "${BATS_EXIT}" = "0" ]; then
@@ -103,11 +106,13 @@ jobs:
repository: niko/gitea-ci-library
path: .ci
- name: Pending
run: bash .ci/scripts/report-status.sh pending "Running Cucumber tests..." ci-cucumber
- name: Run cucumber tests
id: cucumber-tests
shell: bash
run: |
bash .ci/scripts/report-status.sh pending "Running Cucumber tests..." ci-cucumber-running
apt-get update -qq && apt-get install -y -qq --no-install-recommends lsof jq
npm install @cucumber/cucumber > /dev/null 2>&1
mkdir -p "reports/${GITHUB_SHA:0:8}/cucumber"
@@ -123,7 +128,7 @@ jobs:
if: always()
run: bash .ci/scripts/publish-git-pages.sh cucumber
- name: Set cucumber commit status
- name: Report status
if: always()
run: |
if [ "${CUCUMBER_EXIT}" = "0" ]; then
@@ -133,7 +138,6 @@ jobs:
bash .ci/scripts/report-status.sh success "Cucumber tests OK" ci-cucumber
fi
else
bash .ci/scripts/report-status.sh failure "Running Cucumber tests..." ci-cucumber-running
if [ -f "reports/${GITHUB_SHA:0:8}/cucumber/index.html" ]; then
bash .ci/scripts/report-status.sh failure "Cucumber tests FAILED" ci-cucumber cucumber
else
@@ -151,20 +155,19 @@ jobs:
repository: niko/gitea-ci-library
path: .ci
- name: Pending
run: bash .ci/scripts/report-status.sh pending "Generating report index..." ci-build
- name: Generate report index
id: report-index
run: |
bash .ci/scripts/report-status.sh pending "Generating report index..." ci-build-running
bash .ci/.gitea/scripts/generate-report-index.sh
run: bash .ci/.gitea/scripts/generate-report-index.sh
- name: Set build commit status
- name: Report status
if: always()
run: |
if [ "${{ steps.report-index.outcome }}" = "success" ]; then
bash .ci/scripts/report-status.sh success "Generating report index..." ci-build-running
bash .ci/scripts/report-status.sh success "Build complete" ci-build
else
bash .ci/scripts/report-status.sh failure "Generating report index..." ci-build-running
bash .ci/scripts/report-status.sh failure "Build FAILED" ci-build
exit 1
fi