Skip to content
check-square

GitHub Action

PHPLintAction

v0.0.5 Latest version

PHPLintAction

check-square

PHPLintAction

Run your PHP Lint in your Github Actions

Installation

Copy and paste the following snippet into your .yml file.

              

- name: PHPLintAction

uses: J3-Tech/PHP-Lint-Action@v0.0.5

Learn more about this action in J3-Tech/PHP-Lint-Action

Choose a version

Run PHP Lint in Github Actions

Usage

name: CI

on: [push]

jobs:
  phplint:
    runs-on: ubuntu-latest
    name: PHP Lint
    steps:
    - uses: actions/checkout@v2
    - id: PHP-Lint
      uses: J3-Tech/PHP-Lint-Action@v0.0.5
      with:
        path: .
        exclude: vendor

Inputs

The following configuration options are available:

  • path - A php source code filename or directory. Can be a comma-separated string
  • exclude - comma-separated string of patterns that are used to ignore directories.