fa4af77877
- 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
32 lines
888 B
YAML
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
|