POC: test reusable workflow job visibility in Gitea Actions
CI — gitea-ci-library / feature (push) Failing after 1m18s
CI — gitea-ci-library / master (push) Has been skipped

This commit is contained in:
moilanik
2026-06-08 17:22:26 +03:00
parent 8f1bf7e347
commit d76fc9acc2
4 changed files with 157 additions and 35 deletions
+24
View File
@@ -0,0 +1,24 @@
# ci-engine-test.yml — POC: testaa kuinka Gitea raportoi reusable workflow'n jobit
#
# Tämä on väliaikainen testimoottori. Poistetaan POC:n jälkeen.
# Tarkistetaan näkyykö commitissa:
# - ci-engine-test.yml / hello-one
# - ci-engine-test.yml / hello-two
# vai pelkkä yksi check kutsuvan jobin nimellä.
name: CI Engine Test
on:
workflow_call:
jobs:
hello-one:
runs-on: ubuntu-latest
steps:
- run: echo "hello one"
hello-two:
needs: hello-one
runs-on: ubuntu-latest
steps:
- run: echo "hello two"
+5 -13
View File
@@ -1,12 +1,10 @@
# .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
# Jokainen push ajaa kirjaston omat reusable workflowt.
#
# Näin kirjasto testaa itse itsensä — sama mekanismi
# kuin mitä mikropalvelut käyttävät.
# POC: testataan ci-engine-test.yml — nähdään miten Gitea
# raportoi reusable workflow'n sisäiset jobit.
name: CI — gitea-ci-library
@@ -16,18 +14,12 @@ on:
workflow_dispatch:
jobs:
# --- Feature-branch: testit + raportit, ei konttia ---
feature:
if: github.ref != 'refs/heads/master'
uses: ./.gitea/workflows/ci-feature.yml
uses: ./.gitea/workflows/ci-engine-test.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
uses: ./.gitea/workflows/ci-engine-test.yml
secrets: inherit
with:
config-file: ci-flow-values.yaml