Skip to content

Fix: Fixed Function Definitions and Access Modifiers #29

Fix: Fixed Function Definitions and Access Modifiers

Fix: Fixed Function Definitions and Access Modifiers #29

Workflow file for this run

name: Composer, Linter, and Tests
on:
pull_request:
branches: [main]
types: [opened, reopened, synchronize]
jobs:
Run-Tests:
runs-on: ubuntu-latest
steps:
- name: 📥 Checkout code
uses: actions/checkout@v4
- name: 🛠️ Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.1"
tools: composer, cs2pr
- name: 🔍 Validate composer.json and composer.lock
run: composer validate
- name: 📦 Install dependencies
run: composer install --prefer-dist --no-progress
- name: ✨ Run PHP CodeSniffer
run: vendor/bin/phpcs --standard=PSR2 --extensions=php --exclude=Generic.Files.LineLength src
- name: 🧪 Run PHPUnit tests
run: composer run-script test