-
-
Notifications
You must be signed in to change notification settings - Fork 10
49 lines (47 loc) · 1.33 KB
/
main.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
name: PHP CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
include:
- php-version: '7.4'
coverage: 'false'
phpunit-version: '9'
- php-version: '8.0'
coverage: 'false'
phpunit-version: '10'
- php-version: '8.1'
coverage: 'false'
phpunit-version: '10'
- php-version: '8.2'
coverage: 'true'
phpunit-version: '10'
- php-version: '8.3'
coverage: 'false'
phpunit-version: '10'
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
ini-values: post_max_size=256M, max_execution_time=180
extensions: mbstring, intl, calendar
coverage: xdebug
tools: php-cs-fixer, phpunit:${{ matrix.phpunit-version }}
- name: Composer Install
run: composer install --no-interaction --dev
- name: Run Tests
run: ./vendor/bin/phpunit
- name: Codecov
if: ${{ matrix.coverage == 'true' }}
uses: codecov/codecov-action@v3
with:
files: ./build/logs/clover.xml