-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (56 loc) · 1.73 KB
/
compatibility.yml
File metadata and controls
65 lines (56 loc) · 1.73 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
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: Compatibility Probe
on:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: codeigniter4-compat-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
compatibility:
name: PHP ${{ matrix.php }} / CodeIgniter ${{ matrix.framework }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- php: '8.2'
framework: '4.3.8'
ignore_php_platform: false
- php: '8.2'
framework: '4.4.8'
ignore_php_platform: false
- php: '8.2'
framework: '4.5.8'
ignore_php_platform: false
- php: '8.2'
framework: '4.6.5'
ignore_php_platform: false
- php: '8.4'
framework: '4.7.2'
ignore_php_platform: false
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
tools: composer
extensions: pcntl
- name: Install dependencies
run: |
composer config audit.block-insecure false
composer require --no-interaction --no-progress --no-update codeigniter4/framework:${{ matrix.framework }}
composer update \
--with-all-dependencies \
--prefer-dist \
--no-progress \
--no-interaction \
${{ matrix.ignore_php_platform && '--ignore-platform-req=php' || '' }} \
codeigniter4/framework
- name: Run PHPStan
run: composer run phpstan
- name: Run PHPUnit
run: composer run test -- --no-coverage --do-not-fail-on-risky