-
-
Notifications
You must be signed in to change notification settings - Fork 2
65 lines (57 loc) · 1.66 KB
/
bc.yml
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: bc
on:
workflow_call:
inputs:
coverage:
description: Generate code coverage report.
default: pcov
required: false
type: string
extensions:
description: List of extensions to PHP.
default:
required: false
type: string
ini-values:
description: Initial values for PHP configuration.
default: date.timezone='UTC'
required: false
type: string
os:
description: Os to test, separated by comma.
required: true
type: string
php:
description: PHP versions to test, separated by comma.
required: true
type: string
tools:
description: Tools to test, separated by comma.
default: composer:v2
required: false
type: string
jobs:
bc:
name: PHP ${{ matrix.php }}-${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ${{ fromJson(inputs.os) }}
php: ${{ fromJson(inputs.php) }}
steps:
- name: Checkout.
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install PHP with extensions.
uses: shivammathur/setup-php@v2
with:
coverage: ${{ inputs.coverage }}
extensions: ${{ inputs.extensions }}
ini-values: ${{ inputs.ini-values }}
php-version: ${{ matrix.php }}
tools: ${{ inputs.tools }}
- name: Install roave/backward-compatibility-check.
run: composer require --dev roave/backward-compatibility-check
- name: Run roave/backward-compatibility-check.
run: vendor/bin/roave-backward-compatibility-check