Skip to content

Add more PHPMD Rules #15

Add more PHPMD Rules

Add more PHPMD Rules #15

Workflow file for this run

name: Checks
on:
push:
branches:
- master
- v2.0
pull_request:
schedule:
- cron: '0 0 * * *'
jobs:
php-tests:
runs-on: ubuntu-latest
strategy:
matrix:
environment:
- php_version: 8.1
laravel_version: 10
- php_version: 8.2
laravel_version: 10
- php_version: 8.2
laravel_version: 11
- php_version: 8.3
laravel_version: 11
name: PHP ${{ matrix.environment.php_version }} & Laravel ${{ matrix.environment.laravel_version }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup
with:
php_version: ${{ matrix.environment.php_version }}
laravel_version: ${{ matrix.environment.laravel_version }}
- name: Execute tests
run: composer test
php-codesniffer:
runs-on: ubuntu-latest
name: PHP Codesniffer
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup
with:
php_version: 8.3
laravel_version: 11
- name: Run codesniffer
run: composer phpcs
php-mess-detector:
runs-on: ubuntu-latest
name: PHP Mess Detector
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup
with:
php_version: 8.3
laravel_version: 11
- name: Run mess detector
run: composer phpmd