-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (45 loc) · 1.67 KB
/
ci.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
name: ci
on:
pull_request:
jobs:
linux_tests:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: ['8.1', '8.2', '8.3']
stability: [prefer-stable]
name: PHP ${{ matrix.php }} - ${{ matrix.stability }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
ini-values: error_reporting=E_ALL
tools: composer:v2
coverage: xdebug
- name: PHP Copy Paste Detector
uses: StephaneBour/[email protected]
- name: Install dependencies
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
- name: Code Standard and Static Analysis
run: ci/analyse.sh
- name: Execute Unit tests
run: ci/test.sh
env:
TESTSUITE: unit
MINCOVERAGE: ${{ matrix.php == '8.3' && '90' || '0' }}
- name: Execute Functional tests
run: ci/test.sh
env:
TESTSUITE: functional
MINCOVERAGE: ${{ matrix.php == '8.3' && '70' || '0' }}
- name: Execute Integration tests
run: ci/test.sh
env:
TESTSUITE: integration
MINCOVERAGE: ${{ matrix.php == '8.3' && '70' || '0' }}
- name: Execute Cache tests
run: ./vendor/bin/phpunit --testsuite=cache --stop-on-fail