Skip to content

Test different linter actions #9

Test different linter actions

Test different linter actions #9

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
phpstan:
name: PHPStan
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: php-actions/phpstan@v3
with:
path: ./