Skip to content

Releases: shivammathur/setup-php

2.7.0

31 Oct 14:16
c188004
Compare
Choose a tag to compare
  • Add support for PHP 8.1.0-dev. Specify php-version: 8.1 to setup. docs. Closes #303
- name: Setup PHP
  uses: shivammathur/setup-php@v2
  with:
    php-version: '8.1'
  • Add support for macOS Big Sur macos-11.0. docs
runs-on: macos-11.0
  • Add support for fail-fast flag. It will mark the workflow as failed if an extension or tool fails to install. Closes #306
- name: Setup PHP
  uses: shivammathur/setup-php@v2
  with:
    php-version: '7,4'
    tools: deployer
  env:
    fail-fast: true
  • Add support for igbinary and imagick for PHP 5.6 and newer on macOS using shivammathur/homebrew-extensions.
  • Fix setup for extensions ast, phalcon4, pdo_oci and oci8 after october update in ppa:ondrej/php.
  • Fix problem matchers setup when action is called more than once in the same workflow.
  • Switch to apt-get till apt-fast is updated to 1.9.10 on the runner.
  • Fetch PhpManager from release assets.
  • Remove patch for RLIMIT_CORE bug in sudo, fixed upstream.
  • Minor fixes for typos in scripts.
  • Update README.

Thanks @mlocati for the contribution 🎉

1.10.1

26 Nov 19:19
847ea65
Compare
Choose a tag to compare

v1 maintenance release

  • PHP 8 is stable PHP 8.0.0 now on setup-php.
  • Add JIT configuration section to the README. Refer to JIT Configuration.
  • Sync dependencies from shivammathur/extensions tap in add_brew_extension.
  • Fix Xdebug setup.
  • Fix tool setup on Windows.
  • Fix shellcheck warning in add_tool.
  • Fix deleting extensions when one extension is a substring of the other.
  • Fix fetching extension version from PECL on macOS.
  • Refactor darwin.sh script.
  • Change project description in actions.yml.

1.10.0

17 Nov 09:53
44cf056
Compare
Choose a tag to compare

v1 maintenance release

  • Allow installing a specific Composer version.
  • Fix tools setup when latest release does not have the tool in release assets. Will now fetch tool from the previous release till it is added to the latest release.
  • Improve regex for pre-release PECL extensions.
  • Install VcRedist from GitHub on Windows.
  • Set composer version to v1 when prestissimo or composer-prefetcher is specified in tools. It is recommended to stop using prestissimo as Composer 2 is faster on its own.
  • Update PHP dependencies as per GitHub Action runner version on macOS.
  • Fix extension setup on PHP 8.0.
  • Fix composer setup when it is a dependency of a tool.
  • Revert back to apt-fast as it now reports correct exit codes.
  • Revert back to using dashes in step-ids as issue parsing them is fixed upstream on nektos/act.

1.9.8

23 Oct 02:03
bea4065
Compare
Choose a tag to compare
  • Add support for igbinary and imagick for PHP 5.6 and newer on macOS using shivammathur/homebrew-extensions.
  • Fix matchers setup when action is called twice.
  • Perform only one URL call to download latest PhpManager.zip asset.
  • Switch to apt-get till apt-fast is updated to 1.9.10 on the runner.
  • Add warnings to v1 to switch to v2.
  • Fix phalcon4 setup after october update in ppa:ondrej/php.
  • Minor fixes in scripts.
  • Update Node.js dependencies

2.6.0

18 Oct 14:04
eaaab1c
Compare
Choose a tag to compare
  • Setup PHP now has discussions feature. So if you need any help with your workflows, want to suggest features or share anything in general related to PHP, please use setup-php discussions.
  • Add support for behat and phpspec. (Docs)
- name: Setup PHP
  uses: shivammathur/setup-php@v2
  with:
    php-version: '7.4'
    tools: behat, phpspec
  • Add version of tools in logs. Closes #288
  • Add alias latest for current stable php version. (Docs). Closes #293
- name: Setup PHP with phing
  uses: shivammathur/setup-php@v2
  with:
    php-version: latest
  • Switch to environment files to edit PATH and other environment variables. Apply GHSA-mfwh-5m23-j46w (CVE-2020-15228)
  • Prioritize with over env for inputs. Fixes #295
  • Document PHPStan and Psalm support for GitHub Actions in README. (Docs). Related #292
  • Move problem matchers setup to scripts.
  • Refactor install.ts and install.test.ts.
  • Replace codecov badge with one from shields.io.
  • Hyperlink support URL in the logs.
  • Fix dependency mess in phalcon4 setup on Ubuntu after October update in ppa:ondrej/php.
  • Fix some typos and warnings in bash scripts.
  • Overwrite php_oci8.dll for PHP 8 on Windows to fix error when extensions are cached.
  • Update Node.js dependencies.
  • Bump version to 2.6.0.

Thanks @szepeviktor for the contributions 🎉

2.5.0

04 Oct 11:56
983892b
Compare
Choose a tag to compare
  • Add support for phing. Closes #275
- name: Setup PHP with phing
  uses: shivammathur/setup-php@v2
  with:
    php-version: '7.4'
    tools: phing
  • Add support to install intl extension with different ICU versions for PHP 5.6 to PHP 7.4 on Ubuntu.
    ICU 50.2 and newer versions are supported. Refer to ICU builds for the specific versions supported. Closes #282.
- name: Setup PHP with intl and ICU 67.1
  uses: shivammathur/setup-php@v2
  with:
    php-version: '7.4'
    extensions: intl-67.1
  • Add printf to PATH if not found in Windows.
  • Add status page badge in README.
  • Revert to Powershell PhpManager to install PHP 8 on Windows. (Ref: mlocati/powershell-phpmanager#62).
  • Switch from tags to releases and use release assets to get Powershell PhpManager.
  • Fix regex in protoc.sh.
  • Fix installing extensions from Dotdeb PPA for PHP 5.4 and PHP 5.5. Ref: #281.
  • Fix removing extensions for Ubuntu self-hosted runners.
  • Replace fedora references with a valid platform name to validate against process.platform.
  • Refactor tools.ts and win32.ps1.
  • Bump Typescript version to 4.0.1.

Thanks @mlocati for the contributions 🎉

1.9.7

12 Oct 07:49
efbde18
Compare
Choose a tag to compare
  • Switch to environment files to edit PATH and other environment variables. Apply GHSA-mfwh-5m23-j46w (CVE-2020-15228)
  • Prioritize with over env for inputs.
  • Document PHPStan and Psalm support for GitHub Actions in README.
  • Move problem matchers setup to scripts.
  • Hyperlink support URL in the logs.
  • Fix dependency mess in phalcon4 setup on Ubuntu after October update in ppa:ondrej/php.
  • Fix some typos and warnings in bash scripts.
  • Update Node.js dependencies.

1.9.6

07 Sep 03:54
454626a
Compare
Choose a tag to compare
  • Add printf to PATH if not found in Windows.
  • Revert to Powershell PhpManager to install PHP 8 on Windows.
  • Switch from tags to releases and use release assets to get Powershell PhpManager.
  • Replace fedora references with a valid platform name to validate against process.platform.
  • Refactor tools.ts.
  • Bump version to 1.9.6.

2.4.3

21 Aug 18:33
ffded4a
Compare
Choose a tag to compare
  • Fix removing extensions on Ubuntu self-hosted runners. Fixes #271
  • Fix fallback for fetching composer.
  • Remove old PHPUnit on Ubuntu runners.
  • Switch to fixed getcomposer.org links.
  • Add twitter badge to the README.

1.9.5

18 Aug 04:42
f7fb800
Compare
Choose a tag to compare
  • Add fallback for fetching composer.
  • Remove old PHPUnit on Ubuntu runners.
  • Switch to fixed getcomposer.org links.