Skip to content

Releases: php-actions/composer

v6.1.2

11 Oct 22:15
8a65f0d
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v6...v6.1.2

October 2023

11 Oct 22:16
8a65f0d
Compare
Choose a tag to compare

This is a bump of the v6 release.

v6.1.1

11 Nov 10:41
Compare
Choose a tag to compare

This minor patch release includes the following:

  • bash strings are quoted
  • error output is simplified
  • non-zero exit status is passed to the action runner

v6.1.0

09 Nov 16:00
a0caf48
Compare
Choose a tag to compare

What's Changed

  • [Security Issue] Update README.md to recommend removing auth.json after use by @TheLastCicada in #64
  • Update README.md #68 by @euberdeveloper in #69
  • Fix typo by @mj in #74
  • Use quotes for PHP version numbers in README by @osma in #75
  • feat: support specific composer version pinning by @gsdevme in #77
  • Fix deprecated ::set-output by @sacerro in #93
  • [Issues/87] the composer version cannot be defined more precisely than the "major" version by @Un1matr1x in #88
  • Custom ssh port support by @alexdenvir in #85
  • Fix a typo for the incorrect version used by @tenshiAMD in #84
  • More simple instructions for PAT usage by @execut in #91

New Contributors

Full Changelog: v6...v6.1.0

v6.0.0

07 Jun 16:38
Compare
Choose a tag to compare
  • php-build has been updated to allow different versions of Composer/PHP to be built separately, meaning faster builds for your projects.
  • The host environment variables within Github Actions are passed to the Docker container. This Action runs as a Composite Runner, so the actual tests are ran within a custom Docker image, supplied by php-build.
  • Composer's memory limit can be adjusted now thanks to the memory_limit input added by @TimWerdin.
  • When a build fails, all debug output is shown within the action's output, but is grouped within a "debug output" summary. This means that whether your build passes or fails, you'll still see the Composer output in the format you'd expect, but you are now only one click away from viewing all the commands Github Actions ran to get the build running, in case there is a configuration issue to debug. This is shown as the last line of the output, as a clickable summary group that expands to show the full detail.
  • Docs updated, thanks to @binarygary, @LorenzoSapora and @vlasscontreras!

From now on, minor version releases will be made using semantic versioning, with the major version being retagged on the non-specific version tag. For example, the release of v3.0.0 will be tagged as both v3.0.0 and v3 - when a minor version is released, a new tag of v3.1.0 will be created, and the v3 tag will be retagged to point to the latest release within the major release of 3.x. This gives developers the choice of whether to keep up to date with all v3 developments, or fix their builds to a specific version of this action.

As always, have fun and stay productive!

If you've found this action helpful, please consider sponsoring the developer.

Speed improvements and self-owned packages

08 Jan 12:59
ff923f6
Compare
Choose a tag to compare

v4 of this action aimed to provide a configurable PHP runtime. It used a customised Docker image for this, but it proved to be rather slow. Some users were seeing build times of over 2 minutes, which is simply unacceptable of a modern build tool.

This v5 release tackles that problem head on. Switching to an architecture using composite run steps means the actual Composer process can run within a custom Docker image that's built from the official PHP image and contains only what is necessary to execute the Composer command. This reduces the build time to less than 20 seconds. There is probably still room for improvement here, but this is a massive improvement and it's great to finally make this release.

Please note, to achieve the build speeds and configuration possibilities, the custom Docker image is pushed to the repository that calls the action. This means that your user or organisation will list the package on the page at https://github.com/{organisation}/packages. This shouldn't have any effect on things, but it's worth knowing about.

Updated 8th Jan 2021:

A minor release has been added to v5 that includes SSH as default on the base image, and now tags the package name with the version of php-build used, to invalidate any docker caches between versions. This fixes the automation of private repositories.

Updated 1st May 2021:

A minor release has been added to v5 so that all environment variables from the host Github Action runner are exposed to the inner container (apart from the SSH secrets, if they exist).

The 1st May 2021 update will be made into v6.

Customise PHP and Composer versions

12 Nov 12:18
Compare
Choose a tag to compare

This release includes the functionality for switching the current PHP and Composer versions on-the-fly, using the commands switch-php-version and switch-composer-version which are exposed by the Action inputs php_version and composer_version.

Please see the README for more information, and have fun!

Apply arguments for specific commands

13 Oct 15:42
Compare
Choose a tag to compare

Before this version, commands would always receive the default arguments, which was causing issues when people used other commands such as validate, that couldn't take the arguments no-progress, for example.

Now a check is made to ensure that only the arguments that can be applied to the correct commands will be applied.

Have fun!

Configuration enhancements

10 Sep 15:49
Compare
Choose a tag to compare

This release handles configuration options differently. Instead of passing the Docker entrypoint all arguments from the actions runner, the actions runner passes named environment variables to the entrypoint, so the entrypoint script can decide what to do with each variable. This allows for greater flexibility with arguments that are optional and have no value, for example.

Please direct your feedback and any questions to the Github issue tracker.

Have a productive day, keep on coding!

Public release

08 Dec 13:10
Compare
Choose a tag to compare

This action has been used in branches within repositories of https://github.com/phpgt for a while now, so it's finally getting pushed to v1 release.

Have fun, and stay productive!