-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
55 lines (46 loc) · 1.44 KB
/
4.8.x-test.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
name: 4.8.x on PHP 8.x
# Run this workflow every time a new commit pushed to your repository
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
push:
branches: ['4.8.x']
paths-ignore:
- '*.md'
- '.github/**'
- 'scripts/**'
pull_request:
branches: ['4.8.x']
paths-ignore:
- '*.md'
- '.github/**'
- 'scripts/**'
jobs:
run:
runs-on: ${{ matrix.os }}
strategy:
matrix:
php-version: [8.0, 8.1, 8.2, 8.3, 8.4]
os: ['ubuntu-latest']
composer-version: ['latest']
phpunit-version: ['^9.6.18']
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup PHP ${{ matrix.php-version }} on ${{ matrix.os }}
uses: shivammathur/setup-php@verbose
with:
php-version: ${{ matrix.php-version }}
extensions: mbstring, intl
ini-values: post_max_size=256M, max_execution_time=180
coverage: xdebug
tools: phpunit:${{ matrix.phpunit-version }}, composer:${{ matrix.composer-version }}
- name: Install composer
run: composer install
- name: Run linting
run: vendor/bin/phpcs
- name: Run quality rules
run: vendor/bin/phpstan analyse src tests
- name: Run tests
run: XDEBUG_MODE=coverage && phpunit -v -c tests/phpunit.xml --coverage-text --strict-coverage --stop-on-risky
shell: bash