tests pipeline run attempt
This commit is contained in:
@@ -23,8 +23,8 @@ cp devops/ci-local/.env.local.template devops/ci-local/.env.local
|
||||
# 3. List available jobs
|
||||
act -l
|
||||
|
||||
# 4. Dry-run a workflow
|
||||
act -W .gitea/workflows/test-matrix.yml -n
|
||||
# 4. Dry-run a workflow (archived workflows)
|
||||
act -W .gitea/workflows-archived/test-matrix.yml -n
|
||||
```
|
||||
|
||||
### Windows (PowerShell)
|
||||
@@ -54,17 +54,47 @@ The `local-ci.sh` script supports additional modes beyond raw act invocation:
|
||||
./devops/scripts/local-ci.sh module --module Scanner
|
||||
```
|
||||
|
||||
## Gitea CI verification pipeline
|
||||
|
||||
The `local-ci-verify.yml` workflow (in `.gitea/workflows/`) provides a one-click
|
||||
way to validate your local CI setup from within Gitea Actions itself.
|
||||
|
||||
**Trigger:** Manual dispatch only (Gitea UI: **Actions > Local CI Verification > Run workflow**).
|
||||
|
||||
**Inputs:**
|
||||
| Input | Default | Description |
|
||||
|-------|---------|-------------|
|
||||
| `workflow` | _(empty)_ | Archived workflow file to dry-run (e.g. `test-matrix.yml`) |
|
||||
| `dry_run` | `true` | Pass `-n` (dry-run) to act |
|
||||
|
||||
**Jobs:**
|
||||
1. **validate-scaffolding** — Checks that all `devops/ci-local/` files exist and event JSON is valid.
|
||||
2. **build-ci-image** — Builds `stellaops-ci:local` from `devops/docker/Dockerfile.ci`.
|
||||
3. **dry-run-smoke** — Runs `act -l` and `act -n` against `test-matrix.yml` from the archive, plus an optional user-specified workflow.
|
||||
|
||||
**API trigger example:**
|
||||
|
||||
```bash
|
||||
curl -X POST \
|
||||
-H "Authorization: token $GITEA_TOKEN" \
|
||||
"https://git.stella-ops.org/api/v1/repos/<org>/<repo>/actions/workflows/local-ci-verify.yml/dispatches" \
|
||||
-d '{"ref":"main","inputs":{"workflow":"test-matrix.yml","dry_run":"true"}}'
|
||||
```
|
||||
|
||||
## Common workflows
|
||||
|
||||
> **Note:** Workflows have been archived to `.gitea/workflows-archived/`. The
|
||||
> paths below reflect the archive location.
|
||||
|
||||
| Workflow | What it tests | Example |
|
||||
|----------|--------------|---------|
|
||||
| `test-matrix.yml` | Unit + integration test matrix | `act -W .gitea/workflows/test-matrix.yml -n` |
|
||||
| `build-test-deploy.yml` | Full build/test/deploy pipeline | `act -W .gitea/workflows/build-test-deploy.yml -n` |
|
||||
| `scanner-analyzers.yml` | Scanner analyzer suite | `act -W .gitea/workflows/scanner-analyzers.yml -n` |
|
||||
| `parity-tests.yml` | Cross-platform parity checks | `act -W .gitea/workflows/parity-tests.yml -n` |
|
||||
| `integration-tests-gate.yml` | Integration test gate | `act -W .gitea/workflows/integration-tests-gate.yml -n` |
|
||||
| `schema-validation.yml` | JSON/OAS schema validation | `act -W .gitea/workflows/schema-validation.yml -n` |
|
||||
| `determinism-gate.yml` | Deterministic output checks | `act -W .gitea/workflows/determinism-gate.yml -n` |
|
||||
| `test-matrix.yml` | Unit + integration test matrix | `act -W .gitea/workflows-archived/test-matrix.yml -n` |
|
||||
| `build-test-deploy.yml` | Full build/test/deploy pipeline | `act -W .gitea/workflows-archived/build-test-deploy.yml -n` |
|
||||
| `scanner-analyzers.yml` | Scanner analyzer suite | `act -W .gitea/workflows-archived/scanner-analyzers.yml -n` |
|
||||
| `parity-tests.yml` | Cross-platform parity checks | `act -W .gitea/workflows-archived/parity-tests.yml -n` |
|
||||
| `integration-tests-gate.yml` | Integration test gate | `act -W .gitea/workflows-archived/integration-tests-gate.yml -n` |
|
||||
| `schema-validation.yml` | JSON/OAS schema validation | `act -W .gitea/workflows-archived/schema-validation.yml -n` |
|
||||
| `determinism-gate.yml` | Deterministic output checks | `act -W .gitea/workflows-archived/determinism-gate.yml -n` |
|
||||
|
||||
## Environment variables
|
||||
|
||||
|
||||
Reference in New Issue
Block a user