Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

Update shivammathur/setup-php action to v2.19.0 #8501

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 23, 2022

Mend Renovate

This PR contains the following updates:

Package Type Update Change
shivammathur/setup-php action minor 2.9.0 -> 2.19.0

Release Notes

shivammathur/setup-php

v2.19.0

Compare Source

Support Ukraine

#StandWithUkraine


  • Added support for ubuntu-22.04 runner. Docs

  • Added support for Couchbase extension 4.x for PHP 7.4 and above. Also added support to specify the extension version you need. https://github.com/shivammathur/setup-php/issues/593

    Note: Please use the extensions cache if using the latest Couchbase version on Linux as it can take 10+ minutes to build along with its library.

    To install the latest version of couchbase extension

    - name: Setup PHP
      uses: shivammathur@setup-php@v2
      with:
        php-version: '8.1'
        extensions: couchbase

    To install a specific version - suffix couchbase with exact version you want in the extensions input.

    - name: Setup PHP
      uses: shivammathur@setup-php@v2
      with:
        php-version: '7.4'
        extensions: couchbase-2.6.2
  • Improved fallback support upon cache failure in composer setup. This fixes an error when the latest composer version was installed on older PHP versions when fetching composer from shivammathur/composer-cache failed.

  • Bumped Node.js version required to 16.x. Also bumped build target version to ES2021.

  • Removed support for Debian 9 and Ubuntu 21.04 for self-hosted runners. Docs

  • Fixed tools setup with older composer versions which do not create composer.json if missing in the directory.

  • Fixed support for extensions on macOS where the extension package name might conflict with package names in homebrew-core repo. This fixes support for redis extension on macOS on PHP 7.0.

  • Fixed enabling cached extensions which depend on other extensions on PHP 7.1 and lower.

  • Fixed setting default INI values so that it is possible to override those using php -c. https://github.com/shivammathur/setup-php/issues/595

  • Fixed PECL support for PHP 5.3, this was broken in previous release while adding support for specifying configure options, as that is only supported on PHP 5.4 and above.

  • Fixed identifying the latest protoc release.

  • Removed unnecessary fs dependency.

  • Added dependabot config to update older actions in workflows. https://github.com/shivammathur/setup-php/pull/597

  • Added permissions for GITHUB_TOKEN in workflows. https://github.com/shivammathur/setup-php/pull/596

  • Updated Node.js dependencies.


Thanks! @​naveensrinivasan for the contributions 🚀

Follow for updates

setup-php reddit setup-php twitter setup-php status

v2.18.1

Compare Source

Support Ukraine

#StandWithUkraine


- name: Setup PHP with intl
  uses: shivammathur/setup-php@v2
  with:
    php-version: '8.1'
    extensions: intl-71.1
  • Added support for macOS Monterey (macos-12) GitHub hosted environment.

  • Added support for mcrypt extension using shivammathur/extensions tap on macOS.

  • Fixed patching brew for overwriting existing linked libraries.

  • Fixed identifying the latest protoc release.

  • Updated Node.js dependencies.


Thanks! @​jderusse for the contributions 🚀

Follow for updates

setup-php reddit setup-php twitter setup-php status

v2.18.0

Compare Source

Support Ukraine

#StandWithUkraine


  • Added support for installing libraries and custom configure options for PECL extensions. #​575. Docs.

  • Added support for blackfire extension on PHP 8.1 on Windows.

  • Improved support for http extension on Windows and self-hosted environments.

  • Fixed installing php-dev package on self-hosted environments when missing. #​569

  • Fixed linking pecl ini file on self-hosted environments. #​569

  • Fixed copying extensions when installed using brew from its Cellar to extension directory on macOS.

  • Fixed generating extension dependency map.

  • Fixed a bug in log functions on Linux and macOS by using local variables.

  • Improved switching versions on Linux. #​572

  • Improved enabling default extensions by reducing PHP calls.

  • Bumped actions/checkout, actions/upload-artifact, actions/download-artifact and actions/cache version in examples and workflows to v3. #​571, #​577

  • Added PECL customization guide to README.

  • Updated Node.js dependencies.


Thanks! @​jrfnl for the contributions 🚀

Follow for updates

setup-php reddit setup-php twitter setup-php status

v2.17.1

Compare Source

This release is possible because of our sponsors ❤️.

Help setup-php reach its sponsorship goals.

Sponsor shivammathur


  • Added support for OpenSSL config on Windows. #​564
    Now setup-php will set the environment variable OPENSSL_CONF pointing to a valid openssl.cnf file on Windows.

  • Added GitHub releases fallback URL for phing.

  • Updated version of sqlsrv and pdo_sqlsrv extensions to 5.10.0 for PHP 7.4 and above.

  • Fixed logs for symfony-cli on failure. #​568

  • Fixed setting an environment variable on Windows in self-hosted environments.

  • Fixed a bug in adding a directory to PATH. #​562

  • Fixed a minor UUOC shellcheck warning in add_tools.sh.

  • Updated Node.js dependencies.


Thanks! @​mlocati for adding Set-OpenSSLConf 🚀

Follow for updates

setup-php reddit setup-php twitter setup-php status

v2.17.0

Compare Source

This release is possible because of our sponsors ❤️.

Help setup-php reach its sponsorship goals.

Sponsor shivammathur


  • Added ini-file input to specify the base php.ini file. Accepts production, development or none. Docs (#​450, #​469)

By default the production php.ini is used, you can change it to the development one, or remove it using none.

- name: Setup PHP
  with:
    php-version: '8.1'
    ini-file: development
- name: Setup PHP
  with:
    php-version: '8.1'
    tools: symfony-cli
- name: Setup PHP
  with:
    php-version: '8.1'
    tools: churn
  • Added support for blackfire extension on PHP 8.1.
- name: Setup PHP
  with:
    php-version: '8.1'
    extensions: blackfire
  • Tools pecl, phpize and php-config are now installed by default on Linux. Specifying these in tools input is no longer required.

  • The environment variable COMPOSER_NO_INTERACTION is now set to 1 by default, so using --no-interaction in composer commands is not required. (#​547)

  • The environment is now considered self-hosted unless the GitHub hosted environment is detected. This should prevent broken PHP installs in self-hosted environments when the runner environment variable is not specified. (#​554)

  • Added support to enable disabled extensions when required by tools. For this extensions are now processed before tools.

  • Added support to enable xml extension before installing other extensions using pecl. (#​553)

  • Speed improvements

    • Reduced the initial I/O in script creation.
    • Reduced the number of PHP calls and it now uses php-config instead.
    • Reduced number of brew calls on macOS setup.
    • Windows builds for all PHP versions are now fetched from shivammathur/php-builder-windows releases as a faster cache with windows.php.net as a fallback.
    • SSL libraries for PHP 5.3 to 5.5 on Windows are now fetched in parallel.
    • PHP builds for PHP 5.3 to 5.5 should now use cached macports builds from shivammathur/php5-darwin.
  • Added support for installing tools using composer in different scopes. This allows installing two tools with different versions of a common dependency. (#​549)

  • Added support to fail immediately when composer setup fails. (#​548)

  • Added support to parse PECL extension versions when wrongly hyphenated. (#​536)

  • Added support for composer phars from shivammathur/composer-cache with PHP version as now different PHP versions can have different composer versions for a release type.

  • Added setup-php.com as a fallback in addition to jsdeliver.com for script sources.

  • Fixed support for fallback sources for tools in Windows.

  • Fixed potential exponential backtracking in regex to parse extension input when installing extensions from a git repository.

  • Fixed adding sudo to self-hosted Linux environments. (#​555)

  • Fixed enabling disabled extensions with other extensions as dependencies. For example pecl_http, redis, etc.

  • Fixed a bug where the ini file used for enabling extensions by pecl in the scan directory was deleted when disabling extensions.

  • Fixed misconfiguration which prevented package lists from updating on Linux.

  • Fixed the fallback to install PowerShell packages using Install-Module on Windows when GitHub Releases is down. Also fixed not adding the Import-Module command to the profile when it fallbacks.

  • Fixed tools setup to not overwrite an existing tool with a broken one if it fails to set up.

  • Fixed an error when copying tools to a directory in PATH in tools setup.

  • Fixed parsing composer phars from snapshot channel for its version when is a stable version.

  • Fixed support for oci8 and pdo_oci extensions on Windows.

  • Fixed pecl_http setup.

  • Fixed restore-keys input in composer cache example in README with dependency range.

  • Fixed error in tools setup on self-hosted environments when composer's bin directory is not present.

  • Fixed tools.getLatestVersion to handle failing GitHub API call.

  • Fixed output on non-GitHub Action environments where GitHub Action specific command syntax was printed.

  • Fixed a bug where the status variable was overwritten in ppa.sh and was breaking the status output.

  • Fixed scope of variables to local in bash scripts.

  • Fixed setting extension stability in Add-Extension Function on Windows.

  • Fixed node-release workflow to add lib directory to the packages.

  • Fixed sending coverage data to codecov on pull requests.

  • Refactored utils.fetch to its own module and mocked the http module using nock for fetch tests. Now the Node.js test suite does not make any external requests.

  • Refactored setting environment variables and adding to PATH.

  • Refactored setting outputs to functions with a check to only run on GitHub Actions.

  • Refactored extension functions to add_extension.sh and add_extension.ps1.

  • Refactored the default PHP packages for self-hosted Linux environments to a config file. Also added cgi, fpm, mysql, opcache, pgsql and zip to the list.

  • Refactored Nightly PHP setup to Install-PhpNightly Function on Windows.

  • Refactored CI workflows and templates.

  • Rename common.sh to unix.sh.

  • Update security policy to specify clearly that the latest patch versions of both v1 and v2 are supported for security updates.

  • Updated Node workflows to use 16.x.

  • Updated README for the release.

  • Updated Node.js dependencies.


Thanks! @​jrfnl and @​villfa for the contributions 🚀

Follow for updates

setup-php reddit setup-php twitter setup-php status

v2.16.0

Compare Source

This release is possible because of our sponsors. So, if your company uses setup-php, please ask them to sponsor my work.

Sponsor shivammathur


  • PHP 8.1 is now stable (8.1.0) and marked as the latest version. 🥳
- name: Setup PHP 8.1
  uses: shivammathur/setup-php@v2
  with:
    php-version: latest
  • PHP 7.3 to PHP 8.1 packages have been updated to 7.3.33, 7.4.26, 8.0.13, and 8.1.0 respectively. Set the update environment variable to true for always updating to the latest patch version.
- name: Setup PHP
  uses: shivammathur/setup-php@v2
  env:
    update: true
  with:
    php-version: '8.0'
- name: Setup PHP
  uses: shivammathur/setup-php@v2
  with:
    php-version: 7.4
    extensions: intl-70.1
  • Add support for mailparse and xlswriter extensions on macOS using shivammathur/extensions tap.
- name: Setup PHP
  uses: shivammathur/setup-php@v2
  with:
    php-version: 7.4
    extensions: mailparse, xlswriter
  • Fix upgrading nightly versions on self-hosted runners. Now PHP 8.2 will update to the latest build when the update environment variable is set to true.
  • Fix support for brew extensions with different package and extension name.
  • Fix support for Imagick extension on Windows. https://github.com/shivammathur/setup-php/pull/528
  • Fix error while Blackfire configuration file is opened in tool's set up on Linux.
  • Fix extension support to install extension packages from ppa:ondrej/php in php-builder builds.
  • Fix dependency support in self-hosted macOS.
  • Fix to only copy problem-matchers configs to RUNNER_TOOL_CACHE.
  • Fix support for Phalcon extension.
  • Fix CA certificate issues on windows. #​511, #​517
  • Fix to suppress error when extensions are cached on Windows.
  • Log error when wrong Xdebug version is requested as coverage driver for a PHP version. https://github.com/shivammathur/setup-php/issues/519
  • Add patch to support self-hosted environments on Debian 12 or distributions based on it.
  • Add action to limit outbound requests to known endpoints in node workflow.
  • Add links for all tools in the README. https://github.com/shivammathur/setup-php/pull/518
  • Add workflow to publish to NPM and GitHub packages. #​513
  • Use jest.each for extensions and install modules' tests. #​514, #​516,
  • Update Node.js dependencies.

Thanks! @​jrfnl, @​jderusse, and @​aneeshrelan for the contributions 🚀

Follow for updates

setup-php reddit setup-php twitter setup-php status

v2.15.0

Compare Source

Setup PHP depends on sponsorships. Maintaining it takes time and money especially with daily builds for upcoming PHP versions. So, if you found it helpful, please support the project.

Sponsor shivammathur


  • PHP 5.6 to 7.2 have been rebuilt with patch for CVE-2021-21706 backported from 7.3.31.

  • PHP 7.3 to PHP 8.0 packages have been updated to 7.3.31, 7.4.24 and 8.0.11 respectively. Set the update environment variable to true for always updating to the latest patch version.

- name: Setup PHP
  uses: shivammathur/setup-php@v2
  env:
    update: true
  with:
    php-version: '8.0'
  • Add support for the following tools:

- name: Setup PHP
  uses: shivammathur/setup-php@v2
  with:
    php-version: '8.0'
    tools: phpDocumentor, parallel-lint, phpunit-polyfills
- name: Setup PHP
  uses: shivammathur/setup-php@v2
  with:
    php-version: '8.0'
    extensions: expect, ssh2
  • Fix parsing PHP 8.1 version with both RC and dev suffixes in the semver notation.

  • Fix to get correct php-src git ref for nightly builds.

  • Fix version for extensions in logs when installed using PECL.

  • Fix cache support for extensions with custom support. #​496

  • Fix logs for extensions with custom support when cached.

  • Fix PPA setup to add/update list files in /var/lib/apt/lists. #​492

  • Fix typo to use correct key for phpunit in tools.functionRecord. #​501

  • Replace husky with simple-git-hooks.

  • Cleanup trailing whitespace in README.

  • Fix git command in format NPM script.

  • Update Node.js dependencies.


Thanks @​jrfnl for the contributions 🚀

Follow for updates

setup-php reddit setup-php twitter setup-php status

v2.14.0

Compare Source

  • Add support for PHP 8.2. #​490, Docs
  • Specifying 8.2 in the php-version input will set up a nightly build of PHP 8.2.0-dev from the master branch of php/php-src.
- name: Setup PHP 8.2
  uses: shivammathur/setup-php@v2
  with:
    php-version: '8.2'
  • Add support for the nightly alias for setting up a build from the master branch. #​491, Docs
  • This will also set up PHP 8.2.0-dev from the master branch of php/php-src.
- name: Setup PHP 8.2
  uses: shivammathur/setup-php@v2
  with:
    php-version: nightly
  • Add support to disable all shared extensions. #​487 Docs
  • Specifying none in extensions input will now disable all shared extensions.
  • If none is specified along with other extensions then setup-php will first remove all shared extensions, and then process the other extensions in the input.
  • As part of this feature from now on, shared extensions will just be disabled, and not removed completely.

❤️ Thanks! @​sebastianbergmann and @​localheinz for sponsoring this feature.

- name: Setup PHP without any shared extensions except mbstring
  uses: shivammathur/setup-php@v2
  with:
    php-version: 8.0
    extensions: none, mbstring
  • Fix disabling extensions to identify dependent extensions using the Reflection data and disable them as well. For example, disabling PDO will also disable pdo_mysql.

  • Fix warnings in Windows when the required directory is already present.

  • Fix to identify opcache if Zend OPcache is specified in extensions input.

  • Fix Windows script to install PHP 8.2 and future nightly builds correctly.

  • Fix to parse PHP 8.1 semver version.

  • Use shivammathur/extensions tap to install vips extension on macOS.


Internal

  • Add test cases for ini-values containing special characters to config.test.ts to avoid regression.

  • Add bugs, directories, files and types properties in package.json.

  • Add an SVG with past and present individual sponsors to the README.

  • Use commit hash from the path in URL instead of the query string for nightly builds on macOS.

  • Fix build error in install.ts after TypeScript upgrade.

  • Minor refactor in install.test.ts.

  • Refactor config and coverage test files to use jest.each.

  • Update tsconfig to generate type declarations.

  • Update documentation in the README.

  • Update versions in SECURITY.md.

  • Update Node.js dependencies.

v2.13.0

Compare Source

  • Added support for Debian on self-hosted environments and containers.
  • Debian 9 and above are supported in addition to existing Ubuntu support.
  • Operating systems based on these versions of Debian are also supported on a best-effort basis.
container: debian:bullseye
steps:
  - name: Install PHP on Debian
    uses: shivammathur/setup-php@v2
    with:
      php-version: '8.0'
    env:
      runner: self-hosted
  • Added windows-2022 to the supported OS environments.
runs-on: windows-2022
steps:
  - name: Install PHP
    uses: shivammathur/setup-php@v2
    with:
      php-version: '8.0'
  • Added support for phpunit-bridge and updated symfony examples to install it using setup-php.
- name: Setup PHP with Phive
  with:
    php-version: '8.0'
    tools: phpunit-bridge
  • Added documentation to run multi-line PHP code in workflows. #​482
- name: Setup PHP
  uses: shivammathur/setup-php@v2
  with:
    php-version: '8.0'

- name: Run PHP code
  shell: php {0}
  run: |
    <?php
    $welcome = "Hello, world";
    echo $welcome;
  • Added support for extensions mongodb and yaml on macOS using shivammathur/extensions tap.
  • Added a specific phive version compatible with PHP 7.2. #​481
- name: Setup PHP with Phive
  uses: shivammathur/setup-php@v2
  with:
    php-version: '7.2'
    tools: phive
  • Added --no-install-recommends to apt install commands on Linux.
  • Added support for JavaScript actions on shivammathur/node images. spc is no longer required for multi-arch workflows and normal GitHub Action syntax should work.
container: shivammathur/node:latest-${{ matrix.arch }}
strategy:
  matrix:
    arch: ["amd64", "i386"]
steps:
  - name: Install PHP
    uses: shivammathur/setup-php@v2
    with:
      php-version: '8.0'
  • PHP 8.1 on Linux in shivammathur/php-builder is now built nightly with the same configuration and patches as official Debian builds of PHP.
- name: Setup PHP 8.1
  uses: shivammathur/setup-php@v2
  with:
    php-version: '8.1'
  • Added a new flag NO_TOOLS_CACHE. The tool will be fetched from the source instead of any cache that setup-php implements when this is set to true.
  • This can be useful for maintainers to make sure a new version of their tool is used instead of the old cached version.
  • As of this release, only composer phars are cached.
- name: Setup PHP
  uses: shivammathur/setup-php@v2
  env:
    NO_TOOLS_CACHE: true
  with:
    php-version: '8.0'
  • Removed support for Ubuntu 16.04. Please upgrade to Ubuntu 20.04 or Ubuntu 18.04 environments. #​452
  • Removed support for Blackfire v1. Specifying blackfire in tools will now install the latest version of Blackfire CLI v2. #​478
- name: Setup PHP with Blackfire
  uses: shivammathur/setup-php@v2
  with:
    php-version: '8.0'
    tools: blackfire
  • Removed software-properties-common package from dependencies on self-hosted Linux. This package was used for adding third-party repositories(PPA). Removing this reduces self-hosted first run time from 2-3 minutes to 1-2 minutes.

  • PPAs can now be added by setup-php without any dependencies and the deprecated apt-key. It follows the Debian specification for third-party repositories.

  • Remove use of /etc/lsb-release file, /etc/os-release is used now as it has better support.

  • Fixed a bug where the status file was overwritten after PHP was set up on GitHub runners.

  • Fixed support for php-cs-fixer to parse releases.atom file and install correct latest version. #​485

- name: Setup PHP with php-cs-fixer
  uses: shivammathur/setup-php@v2
  with:
    php-version: '8.0'
    tools: php-cs-fixer
  • Fixed cache support for extensions on Windows which need additional libraries.
  • Fixed permissions in composer set up on self-hosted environments. #​477
  • Fixed starting Blackfire service on Linux. #​483
  • Fixed a warning about shallow clones for Homebrew taps on macOS.
  • Fixed a warning about macOS developer mode while using brew cat.
  • In tsconfig.json set lib to ES2020 and target to ES2019 for supporting Node 12 in self-hosted runners.
  • Update Node.js dependencies.

Thanks! @​jrfnl and @​lolautruche for the contributions 🎉

v2.12.0

Compare Source

  • Add support to specify major or major.minor versions for tools. Docs, #​467
- name: Setup PHP
  uses: shivammathur/setup-php@v2
  with:
    php-version: '7.4'
    tools: php-cs-fixer:3, phpunit:8.5
  env:
    COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  • Add a php-version output which can be used in later steps. Docs, #​470
- name: Setup PHP
  id: setup-php
  uses: shivammathur/setup-php@v2
  with:
    php-version: '7.4'

- name: Print PHP version
  run: echo ${{ steps.setup-php.outputs.php-version }}
  • Like Ubuntu, add PHP commit hash in PHP 8.1 (nightly) logs on Windows and macOS.
  • Use composer to install composer-require-checker. #​473
  • Use shivammathur/extensions tap for rdkafka extension on macOS. shivammathur/homebrew-php#​365
  • Support for Ubuntu 16.04 was dropped on August 1, 2021. 📢Announcement: #​452
  • Set the Firebird client version to 3.0.7 on macOS.
  • Improve grpc_php_plugin support on Ubuntu and macOS.
  • Minor fixes for self-hosted setup on Ubuntu.
  • Improve PHP setup on macOS to be more resilient to dependency version inconsistencies.
  • Fix to enable extensions disabled with phpdismod on Ubuntu. actions/virtual-environments#​3472
  • Fix Imagick setup with shivammathur/cache-extensions action on Windows. #​455
  • Fix support for OCI extensions oci8 and pdo_oci. #​449
  • Fix to not use system PHP on macOS.
  • Fix support for Imagick for PHP 5.3 to 5.5 on macOS.
  • Fix installing protoc on macOS.
  • Hotfix: Fix permissions of COMPOSER_HOME directory. #​477
  • Hotfix: Fix support for phive on PHP 7.2. #​481

Internal
  • Update contributors SVG in README.md to include contributors from setup-php and all related projects.
  • Move tools set up details from tools.ts to tools.json config.
  • Improve error handling in utils.fetch and its uses.
  • Refactor tests for tools using jest.Each.
  • Update Ubuntu 16.04 warning in install.ts.
  • Set sourceMap to true in tsconfig.json.
  • Update Node.js dependencies.

v2.11.0

Compare Source

  • Improve cache in shivammathur/php-ubuntu for PHP 5.6 to PHP 8.0.
    Using cache should reduce setup-php runtime on Ubuntu when the PHP version is not installed on the runner or update: true is set from 1-2 minutes to less than 5 seconds.

  • Add support to compile and install extensions from source from any git repository, from a sub-directory in a repository, with required libraries and configuration. Refer to this guide for more details and examples. #​418, Closes #​419

  • Add support to set up composer packages using tools input. Closes #​442

- name: Setup PHP with tools
  uses: shivammathur/setup-php@v2
  with:
    php-version: '7.4'
    tools: phpunit/phpunit
  • Add support to skip composer setup by specifying tools: none. Closes #​446
- name: Setup PHP with no tools using composer
  uses: shivammathur/setup-php@v2
  with:
    php-version: '7.4'
    tools: none
  • Add support for different ICU versions with PHP 8.1 on Ubuntu.
- name: Setup PHP 8.1 with ICU 69.1
  uses: shivammathur/setup-php@v2
  with:
    php-version: '8.1'
    extensions: intl-69.1
  • Improve logs for compiling extensions from source. Now this process is verbose and the logs are grouped.
  • Improve extension support.
    • Add support for pdo_firebird.
    • Improve support for geos to compile on PHP 8.0 and 8.1.
    • Fix cubrid setup on Ubuntu 16.04.
    • Fix gearman support on Ubuntu.
    • Use GitHub releases for all couchbase versions.
    • Use shivammathur/extensions tap for apcu, phalcon, psr, memcache and memcached on macOS.
    • Fix phalcon3 on Windows.
    • Revert to ppa:ondrej/ppa for phalcon3 on Ubuntu.
    • Revert pcov patch for PHP 8 on Windows as the DLL is now available on PECL.
  • Add PHP commit hash in logs on PHP 8.1 (nightly) on Ubuntu. #​433
  • Fix versions in logs of tools installed using composer.
  • Fix linking of old libraries on macOS.
  • Fix enabling cached extensions which have other extensions as dependencies. #​428
  • Fix pecl setup to avoid unnecessary callbacks.
  • Fix blackfire extension version to 1.50.0 for PHP 5.6 and below.
  • Fix composer setup on self-hosted set up. #​435
  • PHP 5.6 to PHP 7.2 on macOS are now built with backported security patches in shivammathur/php tap.

Internal
  • Add fallback to Install-Module in Install-PSPackage in win32.ps1.
  • Add parameters to add_ppa function in linux.sh.
  • Do not lowercase source extension input.
  • Fix warning about ignored promise in install.ts.
  • Fix shellcheck warning in darwin.sh.
  • Refactor coverage setup.
  • Refactor regex in extension.ts.
  • Remove dotdeb support. PHP 5.4 and 5.5 are now built from source along with compatable extensions in shivammathur/php5-ubuntu.
  • Replace bintray with cdnjs as fallback to GitHub releases for fetching scripts.
  • Replace bintray in Windows script with GitHub Releases.
  • Replace bintray and use shivammathur/intl-icu GitHub releases.
  • Move patches from custom extension scripts to patches directory.
  • Switch from clover.xml to lcov.info for coverage. clover.xml has broken conditional coverage support.
  • Use add_extension_from_source for all custom supported extensions.
  • Move patches from custom extension scripts to patches directory.
  • Move add_pecl_extension to common.sh.
  • Improve switch_version in linux.sh to accept parameters.
  • Cleanup tsconfig.json.
  • Set moduleResolution to node in tsconfig.json.
  • Update year in license.
  • Update Node version to 15.x in Node workflow.
  • Update SECURITY.md.
  • Update Node.js dependencies.

v2.10.0

Compare Source

  • Add support to compile extensions from source. Docs (#​399).
- name: Setup PHP with mongodb compiled from source
  uses: shivammathur/setup-php@v2
  with:
    php-version: '7.4'  
    extensions: mongodb-mongodb/[email protected]
  • Add support to setup Xdebug 2.x on PHP 7.2 to PHP 7.4. Docs.
name: Setup PHP with Xdebug 2.x
uses: shivammathur/setup-php@v2
with:
  php-version: '7.4'
  coverage: xdebug2
  • Add support for quoted CSV in ini-values to allow directives with commas (#​392, #​405).
- name: Setup PHP
  uses: shivammathur/setup-php@v2
  with:
    php-version: '8.0'
    ini-values: xdebug.mode="develop,coverage"
  • Add support to specify version in d.x notation. For example 5.x, 7.4 and 8.x (#​395).
- name: Setup PHP 7.4
  uses: shivammathur/setup-php@v2
  with:
    php-version: '7.x'
- name: Setup PHP
  uses: shivammathur/setup-php@v2
  with:
    php-version: '8.0'
    extensions: intl-68.2
  • Add support for pdo_firebird for all configurations.
- name: Setup PHP
  uses: shivammathur/setup-php@v2
  with:
    php-version: '8.0'
    extensions: pdo_firebird
  • Add support for self-hosted runners on macOS ARM64 Docs.
  • Add support for blackfire on PHP 8.0.
- name: Setup PHP with blackfire
  uses: shivammathur/setup-php@v2
  with:
    php-version: '8.0'
    extensions: blackfire
    tools: blackfire
  • Add support for pecl_http for all PHP versions on Ubuntu and macOS and PHP 7.1 to PHP 8.0 on Windows. (#​396)
- name: Setup PHP with pecl_http
  uses: shivammathur/setup-php@v2
  with:
    php-version: '8.0'
    extensions: pecl_http
  • Add support for aliases for symfony-cli, vapor-cli, and wp-cli. Docs
  • Add support for couchbase extension with PHP 5.3 to PHP 5.5 on Ubuntu and macOS.
  • Fail fast on failing to setup the requested PHP version (#​368).
  • Fix Composer config syntax (#​404).
  • Fix PHP 8 on macOS after update on images.
  • Fix PDO extensions setup on Ubuntu and macOS (#​412).
  • Fix compiling extensions in self-hosted workflows (shivammathur/node-docker#​5).
  • Fix tools setup on self-hosted runners.
  • Fix pcov on PHP 8.0 on Windows (#​398).
  • Fix cache support for cubrid and pdo_cubrid.
  • Fix support for phalcon3 (#​413).
  • Improve support for PHP extensions amqp, igbinary, imap, msgpack, propro, raphf, redis and zmq on macOS.
  • Improve support for phive. Now the correct version of phive for the PHP version should be setup (#​366).
  • Improve fetching homebrew taps.
  • Improve PECL support. It is no longer required to specify pecl in tools input.
  • Improve regexes in extensions.ts.
  • Improve logs in Symfony examples (#​377).
  • Set up Codeception using Composer.
  • Change Node.js version in the workflow.
  • Update Node.js dependencies.

Thanks @​dingo-d, @​alcaeus, @​smoqadam and @​glensc for the contributions 🎉


Configuration

📅 Schedule: Branch creation - "before 3am on wednesday" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, click this checkbox.

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/shivammathur-setup-php-2.x branch from f4cb12a to e4ffa45 Compare April 9, 2022 22:51
@renovate renovate bot changed the title Update shivammathur/setup-php action to v2.18.0 Update shivammathur/setup-php action to v2.18.1 Apr 9, 2022
@renovate renovate bot force-pushed the renovate/shivammathur-setup-php-2.x branch from e4ffa45 to 4ae68ac Compare June 3, 2022 04:07
@renovate renovate bot changed the title Update shivammathur/setup-php action to v2.18.1 Update shivammathur/setup-php action to v2.19.0 Jun 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant