Skip to content

chore(ci): use composer scripts, add cache and status badges (refs #117)#147

Merged
ginkelsoft-development merged 1 commit into
developfrom
chore/ci-pipeline
May 12, 2026
Merged

chore(ci): use composer scripts, add cache and status badges (refs #117)#147
ginkelsoft-development merged 1 commit into
developfrom
chore/ci-pipeline

Conversation

@ginkelsoft-development

Copy link
Copy Markdown
Owner

Samenvatting

Eerste deel van #117 — bestaande GitHub Actions workflows verbeteren en consistent maken met de lokale workflow.

Wijzigingen

Workflows

  • composer test|lint|analyse scripts gebruiken i.p.v. losse commands → lokale en CI runs hebben dezelfde definitie
  • Composer cache via actions/cache@v4, gekoppeld aan PHP versie + Laravel matrix + composer.json hash → snellere CI builds na de eerste run
  • Branch triggers uitgebreid met chore/* en refactor/* zodat alle conventionele branches CI triggeren
  • Consistente styling (quotes, structuur)

README

  • Status badges toegevoegd voor Tests en Code Quality

PHPStan blijft soft

PHPStan staat nog op continue-on-error: true. Reden: tot de PHPStan baseline-cleanup (#118) gemerged is, en de external-class stubs (#145) zijn opgelost, leveren level 0 runs op develop 11 pre-existing errors. Hard-faillende CI zou alle PRs blokkeren.

Volgvolgorde:

  1. Merge chore: synchronise phpstan config (resolves #118) #146 (PHPStan level synchroniseren: composer script en phpstan.neon kloppen niet #118 — phpstan sync) → CI heeft schone analyse
  2. Daarna mini-PR die continue-on-error: true weghaalt → hard fail

Verificatie

  • YAML syntax valide (python3 -c "import yaml; yaml.safe_load(...)")
  • Matrix configuratie behouden (PHP 8.1-8.4 × Laravel 10/11/12 met juiste exclusions)
  • Workflow triggers correct uitgebreid
  • Daadwerkelijke CI run — zichtbaar op de PR-checks zodra dit gepushed is

Out of scope

Refs #117

- Use composer scripts (test, lint, analyse) in workflows so local
  and CI runs share the same definition.
- Cache composer dependencies via actions/cache@v4 keyed on PHP
  version + Laravel matrix + composer.json hash.
- Expand branch trigger filter to include chore/* and refactor/*.
- Add Tests and Code Quality status badges to README.
- Keep PHPStan as a soft check (continue-on-error) until the baseline
  ignores (#118) and external-class stubs (#145) land, after which
  this can be turned hard.

Refs #117
@ginkelsoft-development
ginkelsoft-development merged commit a0c2044 into develop May 12, 2026
22 of 24 checks passed
@ginkelsoft-development
ginkelsoft-development deleted the chore/ci-pipeline branch May 12, 2026 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant