Skip to content

Commit 9dbeb09

Browse files
Working on version 3.1
1 parent aa465c5 commit 9dbeb09

File tree

8 files changed

+120
-109
lines changed

8 files changed

+120
-109
lines changed

.gitattributes

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
/.gitattributes export-ignore
55
/.github export-ignore
66
/.gitignore export-ignore
7-
/.travis.yml export-ignore
87
/phpstan.neon.dist export-ignore
98
/phpunit.xml.dist export-ignore
109
/README.md export-ignore

.github/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ Then run [PHPUnit](https://phpunit.de/):
2727
$ vendor/bin/phpunit
2828
```
2929

30-
* The tests will be automatically run by [Travis CI](https://travis-ci.org/) against pull requests.
30+
* The tests will be automatically run by [GitHub Actions](https://github.com/features/actions) against pull requests.
3131
* We also have [StyleCI](https://styleci.io/) setup to automatically fix any code style issues.

.github/workflows/static.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Static Analysis
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
phpstan:
9+
name: PHPStan
10+
runs-on: ubuntu-20.04
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v2
15+
16+
- name: Setup PHP
17+
uses: shivammathur/setup-php@v2
18+
with:
19+
php-version: 7.4
20+
tools: composer:v2
21+
coverage: none
22+
23+
- name: Install Dependencies
24+
uses: nick-invision/retry@v1
25+
with:
26+
timeout_minutes: 5
27+
max_attempts: 5
28+
command: composer update --no-interaction --no-progress
29+
30+
- name: Install PHPStan
31+
uses: nick-invision/retry@v1
32+
with:
33+
timeout_minutes: 5
34+
max_attempts: 5
35+
command: composer bin phpstan update --no-interaction --no-progress
36+
37+
- name: Execute PHPStan
38+
run: vendor/bin/phpstan analyze --no-progress

.github/workflows/tests.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
tests:
9+
name: PHP ${{ matrix.php }}; Symfony ${{ matrix.symfony }}
10+
runs-on: ubuntu-20.04
11+
12+
strategy:
13+
matrix:
14+
php: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0']
15+
symfony: ['3', '4', '5']
16+
exclude:
17+
- php: '7.0'
18+
symfony: '4'
19+
- php: '7.0'
20+
symfony: '5'
21+
- php: '7.1'
22+
symfony: '5'
23+
24+
steps:
25+
- name: Checkout Code
26+
uses: actions/checkout@v2
27+
28+
- name: Setup PHP
29+
uses: shivammathur/setup-php@v2
30+
with:
31+
php-version: ${{ matrix.php }}
32+
tools: composer:v2
33+
coverage: none
34+
35+
- name: Setup Problem Matchers
36+
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
37+
38+
- name: Select Symfony 3
39+
uses: nick-invision/retry@v1
40+
with:
41+
timeout_minutes: 5
42+
max_attempts: 5
43+
command: composer require "symfony/process:^3.4" --no-update --no-interaction
44+
if: "matrix.symfony == '3'"
45+
46+
- name: Select Symfony 4
47+
uses: nick-invision/retry@v1
48+
with:
49+
timeout_minutes: 5
50+
max_attempts: 5
51+
command: composer require "symfony/process:^4.4" --no-update --no-interaction
52+
if: "matrix.symfony == '4'"
53+
54+
- name: Select Symfony 5
55+
uses: nick-invision/retry@v1
56+
with:
57+
timeout_minutes: 5
58+
max_attempts: 5
59+
command: composer require "symfony/process:^5.2" --no-update --no-interaction
60+
if: "matrix.symfony == '5'"
61+
62+
- name: Install PHP Dependencies
63+
uses: nick-invision/retry@v1
64+
with:
65+
timeout_minutes: 5
66+
max_attempts: 5
67+
command: composer update --no-interaction --no-progress
68+
69+
- name: Execute PHPUnit
70+
run: vendor/bin/phpunit

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.phpunit.result.cache
12
composer.lock
23
phpstan.neon
34
phpunit.xml

.travis.yml

Lines changed: 0 additions & 94 deletions
This file was deleted.

composer.json

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@
1414
}
1515
],
1616
"require": {
17-
"php": "^7.0.8",
18-
"classpreloader/classpreloader": "^4.0",
19-
"symfony/console": "^3.4|^4.0|^5.0",
17+
"php": "^7.0.8 || ^8.0",
18+
"classpreloader/classpreloader": "^4.1",
19+
"symfony/console": "^3.4 || ^4.0 || ^5.0",
2020
"symfony/polyfill-ctype": "^1.9"
2121
},
2222
"require-dev": {
23-
"bamarni/composer-bin-plugin": "^1.3",
24-
"phpunit/phpunit": "^6.5.10|^7.5.15",
25-
"graham-campbell/analyzer": "^2.4.1"
23+
"bamarni/composer-bin-plugin": "^1.4.1",
24+
"phpunit/phpunit": "^6.5.14 || ^7.5.20 || ^8.5.13",
25+
"graham-campbell/analyzer": "^2.4.3 || ^3.0.4"
2626
},
2727
"autoload": {
2828
"psr-4": {
@@ -36,11 +36,6 @@
3636
"config": {
3737
"preferred-install": "dist"
3838
},
39-
"extra": {
40-
"branch-alias": {
41-
"dev-master": "3.0-dev"
42-
}
43-
},
4439
"minimum-stability": "dev",
4540
"prefer-stable": true
4641
}

phpstan.neon.dist

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
parameters:
2-
level: 8
2+
level: max
3+
paths:
4+
- src
35

46
includes:
5-
- phpstan-baseline.neon
7+
- phpstan-baseline.neon

0 commit comments

Comments
 (0)