Skip to content

Migrate configuration param from phpunit's XML #29

Migrate configuration param from phpunit's XML

Migrate configuration param from phpunit's XML #29

Workflow file for this run

name: Complete Workflow
on: [ push, pull_request ]
jobs:
run:
runs-on: ubuntu-latest
steps:
- name: Checkout Actions
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
# coverage: none
- name: Setup Composer
uses: php-actions/composer@v6
- name: Cache composer dependencies
uses: actions/cache@v4
with:
path: vendor
key: composer-${{ hashFiles('composer.lock') }}
# - name: Run composer install
# run: composer install -n --prefer-dist
- name: Run psalm
run: ./vendor/bin/psalm --shepherd --threads=2 --no-cache --output-format=github
- name: PHPUnit Tests
uses: php-actions/phpunit@v3
env:
XDEBUG_MODE: coverage
with:
bootstrap: vendor/autoload.php
configuration: phpunit.xml
php_extensions: xdebug
args: tests --migrate-configuration --coverage-clover ./coverage.xml
- name: Upload coverage to Codecov
uses: codecov/[email protected]
with:
files: ./coverage.xml
verbose: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: PHP Mess Detector
uses: php-actions/phpmd@v1
with:
php_version: 8.1
path: src/,demos/,tests/
output: text
ruleset: phpmd.xml