Skip to content

Update README.md

Update README.md #44

Workflow file for this run

name: ci
on:
pull_request:
push:
branches:
- "master"
jobs:
run:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: ['ubuntu-latest']
php-versions: ['8.0', '8.1', '8.2']
composer-prefer-lowest: [false]
coveralls: [false]
include:
- operating-system: 'ubuntu-latest'
php-versions: '8.2'
coveralls: true
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Configure PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
tools: composer:v2
coverage: xdebug
- name: Install Composer dependencies
run: composer install
- name: Composer license check
run: composer check-license
- name: Codesniffer
run: composer cs-check
- name: Static code analysis
run: composer analyze
- name: Unittests
if: matrix.coveralls == false
run: composer test
- name: Infection for added files
env:
INFECTION_BADGE_API_KEY: ${{ secrets.INFECTION_BADGE_API_KEY }}
run: |
git fetch --depth=1 origin $GITHUB_BASE_REF
./vendor/bin/infection -j4 --git-diff-filter=A --git-diff-base=origin/$GITHUB_BASE_REF --logger-github --ignore-msi-with-no-mutations --only-covered
- name: Unittests with coverage
if: matrix.coveralls == true
run: composer coverage
- name: Coveralls report
if: matrix.coveralls == true
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
composer require php-coveralls/php-coveralls --with-all-dependencies
php ./vendor/bin/php-coveralls -v