POC: test reusable workflow job visibility in Gitea Actions (#5)
Co-authored-by: moilanik <niko.moilanen@tietoevry.com> Reviewed-on: #5
This commit is contained in:
+8
-21
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user