Skip to content

Add PHPUnit to the linters #873

Add PHPUnit to the linters

Add PHPUnit to the linters #873

Workflow file for this run

name: Run tests
on:
push:
pull_request:
schedule:
- cron: '0 0 * * *'
jobs:
php-tests:
runs-on: ubuntu-latest
strategy:
matrix:
php:
- '8.4'
- '8.3'
- '8.2'
- '8.1'
- '8.0'
name: PHP ${{ matrix.php }}
steps:
- name: Setup PHP ${{ matrix.php }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: mbstring
ini-values: post_max_size=256M, max_execution_time=180
coverage: xdebug
tools: php-cs-fixer, phpunit
- name: Checkout code
uses: actions/checkout@v3
- name: Install dependencies
run: |
git config --global user.email "[email protected]"; git config --global user.name "Antonio Ribeiro"
- name: Install dependencies
run: |
php --version
composer require --prefer-dist --no-interaction --no-suggest
- name: Execute tests
run: vendor/bin/phpunit
- name: Execute PHPStan
run: vendor/bin/phpstan analyse -c phpstan.neon
- name: Execute Psalm
run: vendor/bin/psalm