Sign inSign up

prestashop/github-action-php-lint

By prestashop

Updated almost 7 years ago

GitHub Action for PHP Syntax check

Image
0

4.1K

prestashop/github-action-php-lint repository overview

GitHub Action for PHP syntax check

This actions runs php -l on all PHP files found in the current project.

Getting Started

Using this action can be done with this template:

steps:
  - name: Checkout
    uses: actions/checkout@v1
    with:
      fetch-depth: 0
  - name: PHP syntax checker 7.2
    uses: prestashop/github-action-php-lint/7.2@v1
    with:
      folder-to-exclude: "! -path \"./vendor/*\" ! -path \"./customer/folder/excluded/*\""
  - name: PHP syntax checker 7.3
    uses: prestashop/github-action-php-lint/7.3@v1
    with:
      folder-to-exclude: "! -path \"./vendor/*\" ! -path \"./customer/folder/excluded/*\""
  - name: PHP syntax checker 5.6
    uses: prestashop/github-action-php-lint/5.6@v1
    with:
      folder-to-exclude: "! -path \"./vendor/*\" ! -path \"./customer/folder/excluded/*\""

The action ignores the folder vendor at root of project by default.

In this example, your workflow will run the PHP syntax check with PHP 5.6, 7.2 & 7.3.

Tag summary

Content type

Image

Digest

Size

138.2 MB

Last updated

almost 7 years ago

docker pull prestashop/github-action-php-lint