Clone the repository and move into it:
git clone [email protected]:dnsimple/dnsimple-php.git
cd dnsimple-php
Install the dependencies using composer:
composer install
Run the test suite to check everything works as expected.
To run the test suite:
./vendor/bin/phpunit tests
💡 A new release is not necessary for changes to composer.lock
because they do not have an effect on projects that depend on dnsimple-php
.
The following instructions uses $VERSION
as a placeholder, where $VERSION
is a MAJOR.MINOR.BUGFIX
release such as 1.2.0
.
- Set the version in
Client.php
:
const VERSION = "$VERSION";
-
Run the test suite and ensure all the tests pass.
./vendor/bin/phpunit tests
-
Finalize the
## main
section inCHANGELOG.md
assigning the version. -
Commit and push the changes
git commit -a -m "Release $VERSION" git push origin main
-
Wait for the CI to complete.
-
Create a signed tag.
git tag -a v$VERSION -s -m "Release $VERSION" git push origin --tags
-
Wait for Packagist to pull the updates. Verify dnsimple/dnsimple package is updated with the new release.
Submit unit tests for your changes. You can test your changes on your machine by running the test suite.
When you submit a PR, tests will also be run on the continuous integration environment via GitHub Actions.