Skip to content

Merge pull request #3 from graze/upgrade/php8-phpunit9-phpcs4-standards3 #4

Merge pull request #3 from graze/upgrade/php8-phpunit9-phpcs4-standards3

Merge pull request #3 from graze/upgrade/php8-phpunit9-phpcs4-standards3 #4

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
coverage: none
tools: composer:v2
- name: Install dependencies
run: composer update --no-interaction --no-progress --prefer-dist
- name: Run phpcs
run: vendor/bin/phpcs -p --warning-severity=0 src/ tests/
test:
name: PHP ${{ matrix.php }} (${{ matrix.dependencies }} deps)
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ['7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5']
dependencies: ['highest', 'lowest']
steps:
- uses: actions/checkout@v6
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
tools: composer:v2
- name: Install dependencies (highest)
if: matrix.dependencies == 'highest'
run: composer update --no-interaction --no-progress --prefer-dist
- name: Install dependencies (lowest)
if: matrix.dependencies == 'lowest'
run: composer update --no-interaction --no-progress --prefer-dist --prefer-lowest
- name: Run unit tests
run: vendor/bin/phpunit --testsuite unit