siivous: env block + validate job + siistit kutsut
CI / load-config (push) Successful in 13s
ci-bats Bats tests
ci-cucumber Cucumber tests passed
ci-build Build complete
CI / feature (push) Successful in 1m32s
CI / main (push) Has been skipped

This commit is contained in:
moilanik
2026-06-13 18:10:05 +03:00
parent 4d78cd7bb5
commit d1ed41036b
2 changed files with 15 additions and 11 deletions
+6 -11
View File
@@ -2,6 +2,9 @@ name: Build Feature
on:
workflow_call:
inputs:
env_json:
required: true
type: string
bats-image:
required: true
type: string
@@ -15,6 +18,9 @@ on:
required: true
env:
GITEA_API_URL: ${{ fromJson(inputs.env_json).GITEA_API_URL }}
PAGES_HOST: ${{ fromJson(inputs.env_json).PAGES_HOST }}
GIT_PAGES_PUBLISH_URL: ${{ fromJson(inputs.env_json).GIT_PAGES_PUBLISH_URL }}
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
GIT_PAGES_PUBLISH_TOKEN: ${{ secrets.GIT_PAGES_PUBLISH_TOKEN }}
@@ -33,7 +39,6 @@ jobs:
bats:
runs-on: ubuntu-latest
needs: validate
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
@@ -41,9 +46,6 @@ jobs:
repository: niko/gitea-ci-library
path: .ci
- name: Load env
run: grep -v '^#' .gitea/workflows/feature-env.conf >> "$GITHUB_ENV"
- name: Run bats tests
id: bats-tests
shell: bash
@@ -78,7 +80,6 @@ jobs:
cucumber:
runs-on: ubuntu-latest
needs: validate
container:
image: ${{ inputs.cucumber-node-image }}
steps:
@@ -88,9 +89,6 @@ jobs:
repository: niko/gitea-ci-library
path: .ci
- name: Load env
run: grep -v '^#' .gitea/workflows/feature-env.conf >> "$GITHUB_ENV"
- name: Prepare cucumber
id: prepare-cucumber
shell: bash
@@ -149,9 +147,6 @@ jobs:
repository: niko/gitea-ci-library
path: .ci
- name: Load env
run: grep -v '^#' .gitea/workflows/feature-env.conf >> "$GITHUB_ENV"
- name: Generate report index
run: bash .ci/.gitea/scripts/generate-report-index.sh
+9
View File
@@ -5,18 +5,27 @@ on:
workflow_dispatch:
jobs:
load-config:
uses: niko/gitea-ci-library/.gitea/workflows/config-provider.yml@feature/pipeline-cleanup
with:
config_path: .gitea/workflows/feature-env.conf
feature:
if: github.ref != 'refs/heads/main'
needs: [load-config]
uses: niko/gitea-ci-library/.gitea/workflows/build-feature.yml@feature/pipeline-cleanup
secrets: inherit
with:
env_json: ${{ needs.load-config.outputs.env_json }}
bats-image: bats/bats:latest
cucumber-node-image: node:22
main:
if: github.ref == 'refs/heads/main'
needs: [load-config]
uses: niko/gitea-ci-library/.gitea/workflows/build-feature.yml@feature/pipeline-cleanup
secrets: inherit
with:
env_json: ${{ needs.load-config.outputs.env_json }}
bats-image: bats/bats:latest
cucumber-node-image: node:22