Skip to main content
Stage options: steps, matrix, parallel (one job per step), php (a version, or false for no PHP), services, timeout, on (pull_request, push, tag, schedule, manual), env, extensions.

Built-in aliases

Available services: mysql, postgres and redis. They start as throwaway containers and the connection settings are exported as environment variables for the job.

Asset presets

build-assets needs node unless the preset is bun. Bun needs an exact version in config, for example 'bun' => '1.2.21'. Slipway installs that release from GitHub and checks the zip against the published checksum. The Bun cache is keyed on the one lockfile that exists (bun.lock or bun.lockb).

Pest TIA

'pest' => ['tia' => true] writes .github/workflows/tia-baseline.yml (GitHub only) following Pest’s TIA workflow. The pull-request test command stays a full suite. CI records a shared baseline on a schedule (default 0 3 * * *) and on pushes to the first push branch. Optional map: php, schedule (5-field cron), coverage (xdebug or pcov, default xdebug), parallel. When parallel is omitted, the baseline matches the Pest step. An explicit tia.parallel that the Pest step does not use is a compile warning. php artisan slipway:tia appends pest()->tia()->locally()->baselined() to an existing tests/Pest.php. It does not create that file. Removing tia from the config does not delete an already committed baseline workflow; delete .github/workflows/tia-baseline.yml yourself.

Infection

Typical use is a dedicated stage after tests, on one PHP version, often on a schedule rather than every pull request:
Mutators and the test runner live in infection.json (or config). git_diff limits mutants to added and modified files against that ref (for example origin/main) and fetches it first so a shallow checkout still works.

Sentry

Put sentry after build-assets in the same stage. @sentry/cli must be in the lockfile so node_modules/.bin/sentry-cli exists. The upload sets --release from SENTRY_RELEASE, or from the CI commit SHA.
Declare the token name in secrets (default SENTRY_AUTH_TOKEN). To add your own step, see Extending.