Skip to content

Update README

Update README #4

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]
jobs:
tests:
name: Run tests & Analysis
runs-on: ubuntu-latest
steps:
# Checkout
- name: Checkout
uses: actions/checkout@v3
# PHP
- name: Setup PHP with Xdebug
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
coverage: xdebug
# Dependencies
- name: Install dependencies with composer
run: composer install -q --ignore-platform-reqs --no-progress --no-suggest --prefer-dist --optimize-autoloader
# Run PHPStan
- name: Run PHPStan
run: composer analyse
# Run tests
- name: Run tests with phpunit
run: export XDEBUG_MODE=coverage && composer test-coverage
# Run analysis
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}