Files
gitea-ci-library/.gitea/workflows/ci.yml
T
moilanik fa4af77877
CI / load-config (push) Failing after 0s
CI / feature (push) Has been skipped
CI / main (push) Has been skipped
feat: refactor config flow and directory structure
- Create config-provider.yml (reusable workflow, conf→JSON)
- Replace duplicated job env blocks with workflow env + fromJson
- Move provider workflows to workflows/ directory
- Move consumer scripts to .gitea/scripts/
- Move feature-env.conf to .gitea/workflows/
- Add bats-report.sh for TAP→HTML conversion
- Update ci.yml with setup→needs→with pattern
- Add ADR 0006 directory ownership
- Document cross-job config propagation in ci-pipeline-practices.md
- Remove config.yaml, scripts/load-config.sh unused
2026-06-13 15:18:02 +03:00

32 lines
888 B
YAML

name: CI
on:
push:
branches: ["**"]
workflow_dispatch:
jobs:
load-config:
uses: niko/gitea-ci-library/workflows/config-provider.yml@feature/pipeline-cleanup
with:
config_path: .gitea/workflows/feature-env.conf
feature:
if: github.ref != 'refs/heads/main'
needs: [load-config]
uses: niko/gitea-ci-library/.gitea/workflows/build-feature.yml@feature/pipeline-cleanup
secrets: inherit
with:
env_json: ${{ needs.load-config.outputs.env_json }}
bats-image: bats/bats:latest
cucumber-node-image: node:22
main:
if: github.ref == 'refs/heads/main'
needs: [load-config]
uses: niko/gitea-ci-library/.gitea/workflows/build-feature.yml@feature/pipeline-cleanup
secrets: inherit
with:
env_json: ${{ needs.load-config.outputs.env_json }}
bats-image: bats/bats:latest
cucumber-node-image: node:22