POC: test reusable workflow job visibility in Gitea Actions (#5)
CI / feature (push) Has been skipped
CI / main (push) Failing after 0s

Co-authored-by: moilanik <niko.moilanen@tietoevry.com>
Reviewed-on: #5
This commit is contained in:
2026-06-13 09:37:47 +03:00
parent 8f1bf7e347
commit dacb8b4ef7
52 changed files with 3887 additions and 645 deletions
+8 -21
View File
@@ -1,33 +1,20 @@
# .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
name: CI
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
if: github.ref != 'refs/heads/main'
uses: niko/gitea-ci-library/.gitea/workflows/build-feature.yml@v1
secrets: inherit
with:
config-file: ci-flow-values.yaml
bats-image: bats/bats:latest
# --- Master-branch: build + kontti + test flow ---
master:
if: github.ref == 'refs/heads/master'
uses: ./.gitea/workflows/ci-master.yml
main:
if: github.ref == 'refs/heads/main'
uses: niko/gitea-ci-library/.gitea/workflows/build-feature.yml@v1
secrets: inherit
with:
config-file: ci-flow-values.yaml
bats-image: bats/bats:latest