Skip to content

Add tests with github actions #2

Add tests with github actions

Add tests with github actions #2

Workflow file for this run

name: Quality
on:
pull_request:
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [ 8.2, 8.3 ]
name: Testing on PHP ${{ matrix.php }}
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite
coverage: none
tools: composer:v2
- name: Install Composer dependencies
run: composer install --prefer-dist --no-interaction --no-progress
- name: Checks Code styles via PHPCsFixer
run: composer test:lint
- name: Execute tests
run: vendor/bin/phpunit