6988488e04
CI Feature / Load gitea-env.conf to pipeline env (push) Successful in 12s
ci-validate CI validation FAILED
CI Feature / Validate CI config (push) Failing after 17s
ci-bats Bats tests OK
CI Feature / Bats tests (push) Successful in 1m38s
ci-cucumber Running Cucumber tests...
CI Feature / Cucumber tests (push) Failing after 1m14s
CI Feature / Report Index (push) Has been skipped
42 lines
1.0 KiB
YAML
42 lines
1.0 KiB
YAML
name: CI Validate
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
env_json:
|
|
required: true
|
|
type: string
|
|
secrets:
|
|
GITEA_TOKEN:
|
|
required: true
|
|
|
|
env:
|
|
GITEA_API_URL: ${{ fromJson(inputs.env_json).GITEA_API_URL }}
|
|
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
|
|
|
jobs:
|
|
validate:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
repository: niko/gitea-ci-library
|
|
path: .ci
|
|
|
|
- name: Pending
|
|
run: bash .ci/scripts/report-status.sh pending "Validating CI config..." ci-validate
|
|
|
|
- name: Validate CI config
|
|
id: validate
|
|
run: bash .ci/scripts/ci-validate.sh
|
|
|
|
- name: Report status
|
|
if: always()
|
|
run: |
|
|
if [ "${{ steps.validate.outcome }}" = "success" ]; then
|
|
bash .ci/scripts/report-status.sh success "CI config valid" ci-validate
|
|
else
|
|
bash .ci/scripts/report-status.sh failure "CI validation FAILED" ci-validate
|
|
exit 1
|
|
fi
|