POC: test reusable workflow job visibility in Gitea Actions
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user