From bac0ccf9ed1502cf07353bfea8721fcd0d61d4e8 Mon Sep 17 00:00:00 2001 From: moilanik Date: Tue, 9 Jun 2026 05:30:48 +0300 Subject: [PATCH] =?UTF-8?q?poc,=20l=C3=B6ytyyk=C3=B6=20provider?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/ci-engine-test.yml | 24 ------------------------ .gitea/workflows/ci-engine.yml | 12 ++++++++++++ .gitea/workflows/ci-smoke-test.yml | 17 ----------------- .gitea/workflows/ci.yml | 9 +++++++++ .gitea/workflows/ci.yml.poc-disabled | 25 ------------------------- 5 files changed, 21 insertions(+), 66 deletions(-) delete mode 100644 .gitea/workflows/ci-engine-test.yml create mode 100644 .gitea/workflows/ci-engine.yml delete mode 100644 .gitea/workflows/ci-smoke-test.yml create mode 100644 .gitea/workflows/ci.yml delete mode 100644 .gitea/workflows/ci.yml.poc-disabled diff --git a/.gitea/workflows/ci-engine-test.yml b/.gitea/workflows/ci-engine-test.yml deleted file mode 100644 index 262fb96..0000000 --- a/.gitea/workflows/ci-engine-test.yml +++ /dev/null @@ -1,24 +0,0 @@ -# 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" diff --git a/.gitea/workflows/ci-engine.yml b/.gitea/workflows/ci-engine.yml new file mode 100644 index 0000000..e68fa35 --- /dev/null +++ b/.gitea/workflows/ci-engine.yml @@ -0,0 +1,12 @@ +name: CI Engine +on: + workflow_call: + +jobs: + hello: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Provider engine reachable + run: echo "ci-engine (provider) running via uses: binding" diff --git a/.gitea/workflows/ci-smoke-test.yml b/.gitea/workflows/ci-smoke-test.yml deleted file mode 100644 index 3f04205..0000000 --- a/.gitea/workflows/ci-smoke-test.yml +++ /dev/null @@ -1,17 +0,0 @@ -# ci-smoke-test.yml — absolute minimaalinen testi: toimiiko Gitea Actions lainkaan -name: Smoke test -on: - push: - branches: ["**"] - -jobs: - one: - runs-on: ubuntu-latest - steps: - - run: echo "smoke test one" - two: - needs: one - runs-on: ubuntu-latest - steps: - - run: echo "smoke test two" -# trigger 1780936099 diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..d998352 --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,9 @@ +name: CI +on: + push: + branches: ["**"] + workflow_dispatch: + +jobs: + call-engine: + uses: niko/gitea-ci-library/.gitea/workflows/ci-engine.yml@plan/0003-alkaa-käyttämään-itseään-commit-raportti diff --git a/.gitea/workflows/ci.yml.poc-disabled b/.gitea/workflows/ci.yml.poc-disabled deleted file mode 100644 index 50d3470..0000000 --- a/.gitea/workflows/ci.yml.poc-disabled +++ /dev/null @@ -1,25 +0,0 @@ -# .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. -# -# POC: testataan ci-engine-test.yml — nähdään miten Gitea -# raportoi reusable workflow'n sisäiset jobit. - -name: CI — gitea-ci-library - -on: - push: - branches: ["**"] - workflow_dispatch: - -jobs: - feature: - if: github.ref != 'refs/heads/master' - uses: niko/gitea-ci-library/.gitea/workflows/ci-engine-test.yml@plan/0003-alkaa-käyttämään-itseään-commit-raportti - secrets: inherit - - master: - if: github.ref == 'refs/heads/master' - uses: niko/gitea-ci-library/.gitea/workflows/ci-engine-test.yml@plan/0003-alkaa-käyttämään-itseään-commit-raportti - secrets: inherit