Skip to content

Create base for the library #1

Create base for the library

Create base for the library #1

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
tools: php-cs-fixer, phpstan
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
- name: Execute PHPUnit tests
run: vendor/bin/phpunit
- name: Check code standard with PHP-CS-Fixer
run: vendor/bin/php-cs-fixer fix --dry-run --diff
- name: Analyze code with PHPStan
run: vendor/bin/phpstan analyse src --level=8