ci: add isolated backend-only P05 runtime acceptance
This commit is contained in:
1 parent
4857558005
commit
03fb58954d
22 files changed
+370
-27
No files matched your search
@@ -0,0 +1,40 @@
|
||||
name: ZitPlane P05-CI-03 Backend Acceptance
|
||||
|
||||
# Isolated backend-only manual verification. Never grant Docker socket
|
||||
# access to untrusted PRs or run this against production services.
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
backend:
|
||||
name: Disposable Backend Portless, Persistence and OIDC
|
||||
runs-on: ubuntu-latest
|
||||
container: node:22-alpine
|
||||
timeout-minutes: 35
|
||||
steps:
|
||||
- name: Install Git before Gitea checkout
|
||||
run: apk add --no-cache git
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
github-server-url: https://dev.ivib.cc
|
||||
- name: Backend-only isolated acceptance
|
||||
run: |
|
||||
set -eu
|
||||
apk add --no-cache python3 docker-cli docker-cli-compose
|
||||
sh tests/ci/backend_acceptance.sh
|
||||
- name: Always cleanup CI-owned Docker data and prove no leftovers
|
||||
if: always()
|
||||
run: |
|
||||
set -eu
|
||||
if [ -f tests/ci/backend_cleanup.sh ]; then
|
||||
if [ -f .p05-ci-owned ]; then
|
||||
apk add --no-cache docker-cli docker-cli-compose
|
||||
fi
|
||||
sh tests/ci/backend_cleanup.sh
|
||||
else
|
||||
echo '::error::Checkout or cleanup script unavailable; no Docker state is claimed clean'
|
||||
exit 1
|
||||
fi
|
||||
Reference in new issue
Block a user