forked from jasonpriem/HumanNameParser.php
-
Notifications
You must be signed in to change notification settings - Fork 8
37 lines (30 loc) · 1.06 KB
/
compatibility.yml
File metadata and controls
37 lines (30 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: PHP Compatibility
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
php-compatibility:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
extensions: dom, curl, libxml, mbstring, zip
coverage: none
- name: Install dependencies
run: |
composer update --prefer-dist --no-interaction
composer require --dev phpcompatibility/php-compatibility
- name: Install PHPCS
run: |
composer config allow-plugins.dealerdirect/phpcodesniffer-composer-installer true
composer require --dev dealerdirect/phpcodesniffer-composer-installer
- name: Check PHP compatibility
run: |
vendor/bin/phpcs --config-set installed_paths vendor/phpcompatibility/php-compatibility
vendor/bin/phpcs -p src/ --standard=PHPCompatibility --runtime-set testVersion 8.1-