-
Notifications
You must be signed in to change notification settings - Fork 14
35 lines (28 loc) · 958 Bytes
/
php-compatibility.yml
File metadata and controls
35 lines (28 loc) · 958 Bytes
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
name: PHP Compatibility
on:
push:
branches:
- develop
- trunk
pull_request:
branches:
- develop
jobs:
php-compatibility:
name: PHP minimum 7.4
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set PHP version
uses: shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401 # v2.32.0
with:
php-version: '7.4'
tools: composer:v2
coverage: none
- name: Install dependencies
run: composer install
- name: Run PHP Compatibility on all files.
run: vendor/bin/phpcs inc --standard=PHPCompatibilityWP --extensions=php --runtime-set testVersion 7.4-
- name: Run PHP Compatibility on main file.
run: vendor/bin/phpcs insert-special-characters.php --standard=PHPCompatibilityWP --extensions=php --runtime-set testVersion 5.6-