GitHub Action implementation of the PHPLint Package provided by @Overtrue/phplint.
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/"| 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 |
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