Skip to content

Add PHP 8.2 to matrix #51

Add PHP 8.2 to matrix

Add PHP 8.2 to matrix #51

Workflow file for this run

name: LeasingNinja in PHP – CI
on: [ push, pull_request ]
jobs:
build:
strategy:
matrix:
php-version: ['8.0', '8.1', '8.2']
runs-on: ubuntu-22.04
steps:
- name: Checkout source code
uses: actions/checkout@v3
- name: Setup PHP with tools
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
tools: composer:v2
- name: Install dependencies
run: composer update --no-interaction --no-ansi --no-progress
- name: Run static analysis
run: ./vendor/bin/phpstan analyze --no-interaction --no-ansi --no-progress
- name: Run CodeSniffer
run: ./vendor/bin/phpcs
- name: Test
run: ./vendor/bin/phpunit