Skip to content

Merge pull request #22 from codebtech/feat/fix-coverage-calculation #71

Merge pull request #22 from codebtech/feat/fix-coverage-calculation

Merge pull request #22 from codebtech/feat/fix-coverage-calculation #71

Workflow file for this run

name: PHP lint, scan & test
on: [push, pull_request]
jobs:
lint-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
extensions: xdebug
coverage: xdebug
tools: composer:v2
- name: Validate composer.json and composer.lock
run: composer validate
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: Run PHPCS Lint
run: composer lint
- name: Run PHPStan
run: composer phpstan
- name: Run PHPMD
run: composer phpmd
- name: Run PHPUnit tests
run: composer test
- name: Upload coverage report
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: coverage/