Skip to content

Test different linter actions #29

Test different linter actions

Test different linter actions #29

Workflow file for this run

---
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/
configuration: src/phpstan.neon