Skip to content

GitHub action to run PHPLint against pull request

Notifications You must be signed in to change notification settings

shopiqo/github-action-phplint

Repository files navigation

GitHub Action for PHPLint

GitHub Action implementation of the PHPLint Package provided by @Overtrue/phplint.

Usage

Create a new workflow file under .github/workflows inside your repository (e.g. .github/workflows/ci.yml).

name: CI

on: [push]

jobs:
  phplint:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v5.0.0

      - name: "Run PHPLint"
        uses: "shopiqo/github-action-phplint@v2.0.0"
        with:
          path: "src/"

Inputs

Name Description Default
path Path to be linted .
config_file Path to phplint config file .phplint.yml
jobs Amount of parallel jobs 10
extensions Check for file extensions php
exclude Exclude path vendor,node_modules
warning Show warnings true

Configuration

If provided, a .phplint.yml will be used for configuration during run of the Action. For more information see the official documentation of phplint.

path:
    - ./src
    - ./tests
jobs: 10
extensions:
    - php
exclude:
    - vendor
    - node_modules
warning: true

About

GitHub action to run PHPLint against pull request

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •