Test different linter actions #23
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: lint | |
on: | |
push: | |
branches: | |
- 'master' | |
- 'releases/**' | |
pull_request: | |
types: [opened, edited, synchronize, reopened, review_requested] | |
jobs: | |
php-lint: | |
name: PHP lint 8.2 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: PHP syntax checker 8.2 | |
uses: prestashop/github-action-php-lint/8.2@master | |
# phpmd: | |
# name: PHP-MD | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Checkout | |
# uses: actions/checkout@v4 | |
# | |
# - name: PHP Mess Detector | |
# uses: php-actions/phpmd@v1 | |
# with: | |
# php_version: 8.2 | |
# path: ./ | |
# output: text | |
# ruleset: test/phpmd/ruleset.xml | |
phpcs: | |
name: PHP-CS | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: PHP Code Sniffer | |
uses: php-actions/phpcs@v1 | |
with: | |
php_version: 8.2 | |
path: ./ | |
standard: PSR12 | |
ignore: livestats.blade.php,config.blade.php | |
exclude: Squiz.Functions.MultiLineFunctionDeclaration | |
phpstan: | |
name: PHPStan | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
path: src | |
- name: Checkout Heimdall repo for dependencies | |
uses: actions/checkout@v4 | |
with: | |
repository: linuxserver/Heimdall | |
path: heimdall-src | |
- uses: php-actions/phpstan@v3 | |
with: | |
path: src |