Verified against Semitexa Ultimate 2026.12.03.0000

Tests in CI

A Semitexa project ships no pipeline file, for any host. Its checks are two commands, and every CI service can run them:

bin/semitexa install    # composer install, inside a container
bin/semitexa test:run   # PHPUnit, then the E2E (Playwright) phase

install is needed because a CI job starts from a clean checkout of your repository. vendor/ and .env are ignored by git, so neither is there, and test:run would have no code to run. No .env is needed: the commands read .env.default, which is committed.

test:run exits non-zero when a phase fails, which fails the job. It runs:

  1. PHPUnit, against a test database it creates in the project's own MySQL container;
  2. the E2E specs (src/modules/*/tests/E2E/*.spec.ts), on an app and a database of their own (see E2E Data).

A run that names test paths or a --filter runs PHPUnit only.

What the runner needs

  • A Docker daemon and Docker Compose v2. Every phase runs in containers: the app image and the PHPUnit and Playwright runners are built on the runner, and MySQL, Redis and NATS are pulled.
  • Network access to Docker Hub and Packagist.
  • About 2 GB of free memory for the E2E phase. test:run prints the host's headroom before it starts E2E. With SEMITEXA_E2E_REQUIRE_HEADROOM=1 it refuses to start below SEMITEXA_E2E_MIN_AVAIL_MB (2048 by default) instead of producing a red run that might be the host's fault.
  • Bind mounts that work. The containers mount the project directory, so the daemon must see the same path the job sees.

PHP, Composer and Node are not needed on the runner.

Runner shapes

Runner Status
A VM with its own Docker daemon (GitHub-hosted ubuntu-latest, a GitLab shell executor on a VM, a self-hosted machine) Proven. Every Semitexa release runs both commands in a clean checkout of a new project on a GitHub-hosted runner, with one E2E spec, and fails the release if either phase fails.
A container runner with its own daemon (GitLab docker executor with docker:dind) Not proven. Under dind the job's directory is the daemon's own, so the mounts should resolve.
A container runner sharing the host's socket (/var/run/docker.sock mounted into the job) Not expected to work. The daemon resolves mount paths on the host, where the job's directory does not exist.

GitHub Actions

name: tests
on: [push, pull_request]
jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - run: bin/semitexa install
      - run: bin/semitexa test:run

Playwright writes what it keeps of a failing spec (screenshots, traces) to var/test-results/e2e/. Upload var/test-results/ as a job artifact to read them after a red run.

What your agent runs

bin/semitexa ai:verify --files=<changed files> is the check an AI agent runs on its change before committing. It answers a different question than test:run: whether this change is done, rather than whether the suite is green. Running it in CI is not covered on this page.

Have a product idea?One free MVP every month