-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (45 loc) · 1.49 KB
/
ci.yaml
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
name: CI
on:
- pull_request
- push
jobs:
analyse:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
coverage: none
- run: composer update --no-progress
- run: composer update --no-progress --working-dir=dev-tools
- run: composer info --direct --working-dir=dev-tools | sort
- run: composer validate --strict
- run: composer normalize --working-dir=dev-tools ../composer.json --dry-run
- run: dev-tools/vendor/bin/composer-require-checker check composer.json --config-file=.composer-require-checker.json
- run: dev-tools/vendor/bin/phpmd src,tests text dev-tools/phpmd.xml
- run: dev-tools/vendor/bin/php-cs-fixer fix --diff --dry-run -v
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- php-version: '7.0'
composer-flags: '--prefer-stable --prefer-lowest'
- php-version: '7.1'
- php-version: '7.2'
- php-version: '7.3'
- php-version: '7.4'
- php-version: '8.0'
- php-version: '8.1'
- php-version: '8.2'
- php-version: '8.3'
steps:
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: none
- run: composer update --no-progress ${{ matrix.composer-flags }}
- run: vendor/bin/phpunit