refaktorointia
CI Feature / Load example-gitea-env.conf to pipeline env (push) Successful in 9s
CI Feature / Validate CI config (push) Failing after 16s
ci-bats Bats tests OK
CI Feature / Bats tests (push) Successful in 1m40s
ci-cucumber Cucumber tests OK
CI Feature / Cucumber tests (push) Successful in 1m3s
CI Feature / Report Summary (push) Successful in 5s

This commit is contained in:
moilanik
2026-06-15 16:49:44 +03:00
parent c19f0b79ec
commit 607a0f6360
4 changed files with 12 additions and 0 deletions
+4
View File
@@ -5,6 +5,9 @@ on:
env_json: env_json:
required: true required: true
type: string type: string
config_path:
required: true
type: string
secrets: secrets:
GITEA_TOKEN: GITEA_TOKEN:
required: true required: true
@@ -15,6 +18,7 @@ env:
GITEA_API_URL: ${{ fromJson(inputs.env_json).GITEA_API_URL }} GITEA_API_URL: ${{ fromJson(inputs.env_json).GITEA_API_URL }}
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
GIT_PAGES_PUBLISH_TOKEN: ${{ secrets.GIT_PAGES_PUBLISH_TOKEN }} GIT_PAGES_PUBLISH_TOKEN: ${{ secrets.GIT_PAGES_PUBLISH_TOKEN }}
CI_CONF_FILE: ${{ inputs.config_path }}
jobs: jobs:
validate: validate:
+6
View File
@@ -8,12 +8,15 @@ on:
outputs: outputs:
env_json: env_json:
value: ${{ jobs.parse-config.outputs.json_data }} value: ${{ jobs.parse-config.outputs.json_data }}
config_path:
value: ${{ jobs.parse-config.outputs.config_path }}
jobs: jobs:
parse-config: parse-config:
runs-on: ubuntu-latest runs-on: ubuntu-latest
outputs: outputs:
json_data: ${{ steps.convert.outputs.JSON_OUT }} json_data: ${{ steps.convert.outputs.JSON_OUT }}
config_path: ${{ steps.set-path.outputs.CONFIG_PATH }}
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@@ -29,3 +32,6 @@ jobs:
CLEAN_JSON=$(echo "$JSON_STRING" | jq -c .) CLEAN_JSON=$(echo "$JSON_STRING" | jq -c .)
echo "JSON_OUT=$CLEAN_JSON" >> "$GITHUB_OUTPUT" echo "JSON_OUT=$CLEAN_JSON" >> "$GITHUB_OUTPUT"
- id: set-path
run: echo "CONFIG_PATH=${{ inputs.config_path }}" >> "$GITHUB_OUTPUT"
+1
View File
@@ -19,6 +19,7 @@ jobs:
secrets: inherit secrets: inherit
with: with:
env_json: ${{ needs.load-config.outputs.env_json }} env_json: ${{ needs.load-config.outputs.env_json }}
config_path: ${{ needs.load-config.outputs.config_path }}
bats: bats:
name: Bats tests name: Bats tests
+1
View File
@@ -28,6 +28,7 @@ jobs:
secrets: inherit secrets: inherit
with: with:
env_json: ${{ needs.load-config.outputs.env_json }} env_json: ${{ needs.load-config.outputs.env_json }}
config_path: ${{ needs.load-config.outputs.config_path }}
bats: bats:
name: Bats tests name: Bats tests