Skip to content

ci: run the Code Review workflow via docker compose (drop Task) - #41

Merged
turegjorup merged 3 commits into
developfrom
ci/pr-workflow-docker-compose
Jul 8, 2026
Merged

ci: run the Code Review workflow via docker compose (drop Task)#41
turegjorup merged 3 commits into
developfrom
ci/pr-workflow-docker-compose

Conversation

@turegjorup

Copy link
Copy Markdown
Contributor

Standardise pr.yaml on docker compose directly instead of Task, and harden against composer's dist-download rate limit — adapted from event-database-imports #98 (itself from os2display).

Changes (pr.yaml, both jobs)

  • Vendor cacheactions/cache@v5 on vendor/, keyed on composer.lock with a vendor-php8.4- restore-key. On a hit composer install does no dist downloads (no HTTP 429); on a miss the restore-key pre-populates most of vendor/.
  • Image pre-pulldocker compose pull --quiet up front.
  • Task → docker compose — dropped go-task/setup-task; task site:updatedocker compose up --detach --wait + composer install; task fixtures:load:test → an inline index loop; task api:test:coverage / task code-analysis:phpstan → direct docker compose exec calls (coverage still via XDEBUG_MODE=coverage … --coverage-clover).

The Taskfile targets stay for local development; only CI stops calling them.

Verification

Ran the exact inlined commands locally: fixtures load for all 7 indexes, phpunit --coverage-clover203 tests / 496 assertions + Clover report, phpstan level 8 clean, prettier clean.

Note

Kept actions/checkout@v5 (version bumps are PR #39's scope) — expect a trivial reconcile against #39 on merge. api-spec.yml still uses Task (PR #40); converting it can follow the same pattern if wanted.

Standardise the pr.yaml jobs on `docker compose` directly instead of Task, and
harden against composer's dist-download rate limit, adapted from
event-database-imports #98.

- Cache vendor/ (actions/cache@v5, keyed on composer.lock) and pre-pull images
  (docker compose pull --quiet) in both jobs.
- Replace `task site:update` with explicit up --wait + composer install;
  `task fixtures:load:test` with an inline index loop; `task api:test:coverage`
  and `task code-analysis:phpstan` with direct `docker compose exec` calls.

The Taskfile targets remain for local development; only CI stops using them.
@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown

No changes detected in API specification

@codecov-commenter

codecov-commenter commented Jul 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 71.89%. Comparing base (d6f37ac) to head (5477478).
⚠️ Report is 5 commits behind head on develop.

Additional details and impacted files
@@            Coverage Diff             @@
##             develop      #41   +/-   ##
==========================================
  Coverage      71.89%   71.89%           
  Complexity       226      226           
==========================================
  Files             29       29           
  Lines            637      637           
==========================================
  Hits             458      458           
  Misses           179      179           
Flag Coverage Δ
unittests 71.89% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

…ker-compose

# Conflicts:
#	.github/workflows/pr.yaml
#	CHANGELOG.md
@turegjorup
turegjorup merged commit dec89af into develop Jul 8, 2026
10 checks passed
@turegjorup
turegjorup deleted the ci/pr-workflow-docker-compose branch July 8, 2026 09:51
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.

2 participants