Skip to content

[Tests] Add setup for API Tests.#100

Merged
martineiber merged 16 commits into
2026.1from
api-test
May 12, 2026
Merged

[Tests] Add setup for API Tests.#100
martineiber merged 16 commits into
2026.1from
api-test

Conversation

@martineiber
Copy link
Copy Markdown
Contributor

Add setup for API Tests.

@martineiber martineiber self-assigned this Apr 28, 2026
@martineiber martineiber marked this pull request as ready for review May 11, 2026 12:00
@bluvulture bluvulture requested a review from Copilot May 11, 2026 12:44
Copy link
Copy Markdown
Contributor

@bluvulture bluvulture left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes on the workflows are looking ok - I think the rest is also okay, but lets see for the copilot review

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds an end-to-end, Docker-based API test environment and CI workflow to install Pimcore (with enterprise bundles) and execute Playwright tests from pimcore/studio-tests.

Changes:

  • Adds a GitHub Actions workflow to provision a Pimcore instance and run Playwright tests.
  • Introduces local helper scripts plus Docker Compose + Nginx/Supervisord config to create/install/reset/teardown the test environment.
  • Documents local/CI usage in .github/API_TESTS.md and links it from the main README.

Reviewed changes

Copilot reviewed 18 out of 18 changed files in this pull request and generated 12 comments.

Show a summary per file
File Description
README.md Links readers to the new API test documentation.
.github/workflows/api-tests.yml CI workflow to provision Pimcore + run Playwright tests.
.github/scripts/00-localsetup.sh Local orchestrator: setup → registration → install → optional test run.
.github/scripts/01-setup-environment.sh Creates test project, writes env, starts containers, waits for deps.
.github/scripts/02-install-pimcore.sh Requires platform/bundles via Composer and runs Pimcore installer.
.github/scripts/03-run-tests.sh Runs Playwright tests against the local Pimcore instance.
.github/scripts/04-shutdown.sh Stops containers and removes volumes.
.github/scripts/05-reset.sh Fast reset: DB drop/recreate + reinstall + post-install tasks.
.github/scripts/06-teardown.sh Full shutdown; optional removal of the test project directory.
.github/scripts/.gitignore Ignores local secrets file .env.local.
.github/files/.env Base config defaults for the test environment.
.github/files/ApiTestProfile.php Pimcore install profile enabling a broad set of enterprise bundles.
.github/files/docker-compose.yaml Local Compose stack (db, opensearch, php, nginx, etc.).
.github/files/docker-compose.ci.yaml CI-specific Compose overrides.
.github/files/messenger.yaml Messenger transport configuration for the test project.
.github/files/nginx.conf Nginx config for the test project.
.github/files/supervisord.conf Supervisor config to run messenger consume + maintenance.
.github/API_TESTS.md Local + CI setup instructions and operational notes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/api-tests.yml
Comment thread .github/workflows/api-tests.yml
Comment thread .github/workflows/api-tests.yml
Comment thread .github/API_TESTS.md Outdated
Comment thread .github/scripts/01-setup-environment.sh
Comment thread .github/scripts/06-teardown.sh
Comment thread .github/workflows/api-tests.yml
Comment thread .github/files/docker-compose.ci.yaml Outdated
Comment thread .github/files/docker-compose.yaml
Comment thread .github/workflows/api-tests.yml
@bluvulture
Copy link
Copy Markdown
Contributor

@martineiber check the copilot does it have something meaningful - otherwise feel free to merge

martineiber and others added 3 commits May 12, 2026 06:34
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@martineiber martineiber merged commit 6f41820 into 2026.1 May 12, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants