siivous: env block + validate job + siistit kutsut
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user