34 lines
895 B
YAML
34 lines
895 B
YAML
# .gitea/workflows/ci.yml — Kirjaston oma CI (eat your own dogfood)
|
|
#
|
|
# Tämä workflow on kirjaston ENSIMMÄINEN kuluttaja.
|
|
# Jokainen push ajaa kirjaston omat reusable workflowt:
|
|
# - feature-branch → ci-feature.yml
|
|
# - master-branch → ci-master.yml
|
|
#
|
|
# Näin kirjasto testaa itse itsensä — sama mekanismi
|
|
# kuin mitä mikropalvelut käyttävät.
|
|
|
|
name: CI — gitea-ci-library
|
|
|
|
on:
|
|
push:
|
|
branches: ["**"]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
# --- Feature-branch: testit + raportit, ei konttia ---
|
|
feature:
|
|
if: github.ref != 'refs/heads/master'
|
|
uses: ./.gitea/workflows/ci-feature.yml
|
|
secrets: inherit
|
|
with:
|
|
config-file: ci-flow-values.yaml
|
|
|
|
# --- Master-branch: build + kontti + test flow ---
|
|
master:
|
|
if: github.ref == 'refs/heads/master'
|
|
uses: ./.gitea/workflows/ci-master.yml
|
|
secrets: inherit
|
|
with:
|
|
config-file: ci-flow-values.yaml
|