Run examples from the examples/ directory.
Run the default local test workflow (lint + phpcs + unit tests):
composer run testRun lint only:
composer lintRun static analysis separately:
composer psalmRun phpunit tests on a single internal package:
vendor/bin/phpunit packages/mediawiki-api-base/tests/unitIntegration tests are facilitated by the docker-compose-ci.yml file.
Run it before running integration tests.
docker compose -f docker-compose-ci.yml up -d --buildWait for the wiki to be accessible, then run the tests:
composer phpunit-integrationTo publish a new release:
- Determine the new semantic version number.
- Update
RELEASENOTES.mdwith details of the release. - Create a tag (either locally or on GitHub) with a name matching
v*.*.*. - Push the tag to GitHub, where the release.yaml workflow will create a new Release.
Packagist will be updated automatically.