Skip to content

chore: update commands to Run Infection in CI Workflow #222

chore: update commands to Run Infection in CI Workflow

chore: update commands to Run Infection in CI Workflow #222

Workflow file for this run

name: Run CI
on: [push, pull_request]
jobs:
build:
name: CI
runs-on: ubuntu-latest
strategy:
matrix:
php: ['8.1', '8.2']
dependencies: ['normal', 'authoritative']
steps:
- uses: actions/checkout@v3
- name: Install dependencies
if: matrix.dependencies == 'normal'
run: composer install --prefer-dist
env:
COMPOSER_ROOT_VERSION: dev-master
- name: Install dependencies
if: matrix.dependencies == 'authoritative'
run: composer install --prefer-dist --classmap-authoritative
env:
COMPOSER_ROOT_VERSION: dev-master
- name: Run Phpunit
run: composer run phpunit
- name: Run Infection
run: |
./vendor/bin/phpunit --coverage-xml cov
./vendor/bin/infection --coverage=cov
- name: Run PhpCs
run: ./vendor/bin/phpcs -q --report=checkstyle | ./vendor/bin/cs2pr
- name: Check dependency usage
run: ./vendor/bin/composer-require-checker check ./composer.json