Skip to content

update: phpcs.yml

update: phpcs.yml #23

Workflow file for this run

name: ci
on:
push:
paths-ignore:
- "README.md"
pull_request:
paths-ignore:
- "README.md"
jobs:
phpunit:
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
php:
- 8.1
- 8.2
experimental: [false]
include:
- os: ubuntu-latest
php: 8.3
experimental: true
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: mbstring #optional, setup extensions
coverage: xdebug #optional, setup coverage driver
- name: Check Version
run: |
php -v
php -m
composer -V
- name: Validate composer.json and composer.lock
run: composer validate
- name: Get composer cache directory
id: composer-cache
shell: "bash"
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Cache vendor
uses: actions/cache@v3
env:
cache-name: composer-cache
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-php-${{ matrix.php }}-build-${{ env.cache-name }}
- name: Install dependencies (composer.lock)
run: composer install --prefer-dist --no-progress
- name: Run test suite
run: ./vendor/bin/phpunit --coverage-text