Skip to content

Improve CI workflow

Improve CI workflow #1

Workflow file for this run

name: Integrate
on:
pull_request: null
jobs:
cs:
name: Coding Standards
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
coverage: none
- name: Install dependencies
run: composer update --prefer-dist --no-progress
- name: Run PHP CS Fixer
run: composer run cs
tests:
name: Unit Tests
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['8.0', '8.1', '8.2']
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
- name: Install dependencies
run: composer update --prefer-dist --no-progress
- name: Execute unit tests
run: composer run test
stan:
name: Static Analysis
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
- name: Install dependencies
run: composer update --prefer-dist --no-progress
- name: Run PHPStan
run: composer run stan