Git Product home page Git Product logo

phpcompatibility-action's Introduction

PHP Compatibility Github Action

This Github Action runs PHPCompatibility/PHPCompatibility on your source code in an easy way.

PHPCompatibility is a set of sniffs for PHP CodeSniffer that checks for PHP cross-version compatibility. It will allow you to analyse your code for compatibility with higher and lower versions of PHP. This way you can confidently make changes to your code and make sure you don't break backwards compatibility on it.

PHP 8.x Compatibility checks

The v1 branch of the action uses the latest stable release of PHPCompatibility (^9.3), however this release does not have any checks for PHP 8.x, so using pantheon-systems/phpcompatibility-action@v1 with test-versions: 8.0- will not check anything.

If you need to run 8.x checks on your project, use the dev branch of the phpcompatibility-action, e.g.: uses: pantheon-systems/phpcompatibility-action@dev. The dev branch uses the develop branch of PHPCompatibility where some 8.x checks have been added.

Inputs

skip-php-setup

Allows you to skip the usage of shivammathur/setup-php when running the action. Default: false.

test-versions

Select the test versions to run PHPCompatibility. It supports any format accepted by PHPCompatibility (Default: 8.0-)

paths

Paths to run compatibility check on. Default: ${{ github.workspace }}

Example Usage

uses: pantheon-systems/phpcompatibility-action@v1
with:
  test-versions: 7.4-
  paths: ${{ github.workspace }}/src

phpcompatibility-action's People

Contributors

kporras07 avatar jazzsequence avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.