-
-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (37 loc) · 1.29 KB
/
ci.yml
File metadata and controls
44 lines (37 loc) · 1.29 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
name: CI
on:
pull_request:
workflow_dispatch:
jobs:
test-suite:
name: PHPStan, PHPcs & Testsuite
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: [ '8.1', '8.2' ]
phpunit-versions: [ '10.3', '11.0' ]
exclude:
- php-versions: 8.1
phpunit-versions: 11.0
steps:
# https://github.com/marketplace/actions/setup-php-action
- name: Setup PHP ${{ matrix.php-versions }} with Xdebug 3.x
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
coverage: xdebug
# https://github.com/marketplace/actions/checkout
- name: Checkout code
uses: actions/checkout@v3
- name: Install PHPUnit ${{ matrix.phpunit-versions }}
run: |
rm composer.lock
composer require phpunit/phpunit ^${{ matrix.phpunit-versions }}
- name: Install dependencies
run: composer install --prefer-dist
- name: Run PHPStan
run: vendor/bin/phpstan analyse
#- name: Run PHPcs fixer dry-run
# run: vendor/bin/php-cs-fixer fix --dry-run --stop-on-violation --config=.php-cs-fixer.dist.php
- name: Run test suite
run: vendor/bin/phpunit --fail-on-incomplete --log-junit junit.xml --coverage-clover clover.xml