Skip to content

chore: add links for docs in readme #179

chore: add links for docs in readme

chore: add links for docs in readme #179

Workflow file for this run

name: 🧪 Test
on:
push:
pull_request:
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
php: ["8.1", "8.2"]
name: ⚙️ PHP ${{ matrix.php }}
steps:
- name: 📥 Checkout code
uses: actions/checkout@v4
- name: 🧰 Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: xdebug
- name: ✅ Validate composer.json and composer.lock
run: composer validate --strict
- name: 📦 Cache Composer packages
id: composer-cache
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: 📥 Install dependencies
run: composer install --no-progress --prefer-dist --optimize-autoloader
- name: 🔍 Check php-cs-fixer
run: composer php-cs-fixer-dry-run
- name: ✅ PHPUnit tests
run: vendor/bin/phpunit -c phpunit.xml --coverage-clover clover.xml
- name: 📝 PHPStan check
run: vendor/bin/phpstan analyse src -l 9
- name: 📤 Upload coverage to Codecov
uses: codecov/codecov-action@v3
if: matrix.php == '8.1'