mirror of
https://github.com/pestphp/pest.git
synced 2026-12-04 23:15:06 +01:00
06400e721eeb825a81a7dd0682802bc73c2cf6a1
Extract BaselineSync into a provider architecture with an abstract BaseRemote class and concrete GitHubRemote/GitLabRemote implementations. GitLab support uses the glab CLI to fetch TIA baselines from CI pipelines. The GitLabRemote queries the GitLab API for the latest successful job matching the configured name on the default branch, then downloads artifacts via `glab job artifact`. Self-hosted GitLab instances are supported automatically: any non-GitHub remote is detected as GitLab when the glab CLI is installed, with authentication validated at fetch time. Key changes: - BaseRemote abstract class holds shared logic: CLI existence/auth checks, error classification, git remote URL parsing, and default branch resolution - GitHubRemote extracts existing gh CLI logic unchanged - GitLabRemote adds glab CLI support with default job name `tia-baseline`, configurable via `->baselined(job: "name")` - BaselineSync becomes a provider-agnostic orchestrator that iterates registered remotes to detect the matching CI provider - Configuration::baselined() accepts optional `job` parameter for GitLab job name customization - GitLab job query filters by both job name and default branch ref to ensure cache key matches downloaded artifact
Pest v5 Now Available: Read the announcement ».
Pest is an elegant testing framework for PHP developers and AI agents.
- Explore our docs at pestphp.com »
- Follow the creator Nuno Maduro:
- YouTube: youtube.com/@nunomaduro — Videos every week
- Twitch: twitch.tv/nunomaduro — Live coding on Mondays, Wednesdays, and Fridays at 9PM UTC
- Twitter / X: x.com/enunomaduro
- LinkedIn: linkedin.com/in/nunomaduro
- Instagram: instagram.com/enunomaduro
- Tiktok: tiktok.com/@enunomaduro
Sponsors
We cannot thank our sponsors enough for their incredible support in funding Pest's development. Their contributions have been instrumental in making Pest the best it can be. For those who are interested in becoming a sponsor, please visit Nuno Maduro's Sponsor page at github.com/sponsors/nunomaduro.
- PhpStorm
- CodeRabbit
- SerpApi
- Bento
- CMS Max
- Redberry
- Typesense
- Pixel
- NativePHP
- TestMu AI
- Zapiet
- LoadForge
- Route4Me
- Nerdify
Pest is an open-sourced software licensed under the MIT license.
Languages
PHP
99.3%
HTML
0.6%
