-
-
Notifications
You must be signed in to change notification settings - Fork 26
53 lines (44 loc) · 1.23 KB
/
php.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
name: Unit tests
on:
push:
branches:
- 'master'
tags:
- '*'
pull_request:
jobs:
build:
strategy:
matrix:
php: ['8.0', '8.1', '8.2', '8.3']
phpunit: ['8.0', '9.0', '10.0', '11.0']
exclude:
- php: '8.0'
phpunit: '10.0'
- php: '8.1'
phpunit: '11.0'
- php: '8.0'
phpunit: '11.0'
runs-on: ubuntu-latest
name: PHP ${{ matrix.php }}, PHPUnit ${{ matrix.phpunit }}
steps:
- uses: actions/checkout@v1
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: mbstring, intl, json
ini-values: error_reporting=E_ALL
coverage: pcov
tools: composer:v2
- name: Validate composer.json and composer.lock
run: composer validate
- name: Declare required PHPUnit version
run: |
composer require --no-update --dev phpunit/phpunit ~${{ matrix.phpunit }}
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
#- name: Run type checker
# run: ./vendor/bin/psalm
- name: Run unit tests
run: ./vendor/bin/phpunit --testdox --no-coverage