-
Notifications
You must be signed in to change notification settings - Fork 67
38 lines (35 loc) · 1010 Bytes
/
Copy pathphp-compatibility.yml
File metadata and controls
38 lines (35 loc) · 1010 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
36
37
38
name: PHP Compatibility
on:
push:
branches: [ master, develop ]
paths:
- '**.php'
- 'composer.json'
- 'phpcs.xml.dist'
- '.github/workflows/php-compatibility.yml'
pull_request:
branches: [ master, develop ]
paths:
- '**.php'
- 'composer.json'
- 'phpcs.xml.dist'
- '.github/workflows/php-compatibility.yml'
# One run per PR or branch. A new push cancels the previous run.
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
phpcompat:
name: PHPCompatibilityWP
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
coverage: none
tools: composer:v2
- name: Install Composer dependencies
run: composer update --no-interaction --prefer-dist --no-progress
- name: Run PHPCompatibilityWP
run: vendor/bin/phpcs