Skip to content

Commit 78ff3cd

Browse files
committed
Updated dependencies
1 parent 1e6e829 commit 78ff3cd

File tree

7 files changed

+4808
-27
lines changed

7 files changed

+4808
-27
lines changed

.github/workflows/static-analyze.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: "Static Analyze"
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- "1.x"
8+
schedule:
9+
- cron: '* 8 * * *'
10+
11+
jobs:
12+
compatibility:
13+
name: "Static Analyze"
14+
15+
runs-on: ${{ matrix.operating-system }}
16+
17+
strategy:
18+
matrix:
19+
dependencies:
20+
- "locked"
21+
php-version:
22+
- "7.4"
23+
operating-system:
24+
- "ubuntu-latest"
25+
26+
steps:
27+
- name: "Checkout"
28+
uses: "actions/checkout@v2"
29+
30+
- name: "Install PHP"
31+
uses: "shivammathur/setup-php@v2"
32+
with:
33+
coverage: "pcov"
34+
php-version: "${{ matrix.php-version }}"
35+
ini-values: memory_limit=-1
36+
37+
- name: "Cache dependencies"
38+
uses: "actions/cache@v2"
39+
with:
40+
path: |
41+
~/.composer/cache
42+
vendor
43+
key: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}"
44+
restore-keys: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}"
45+
46+
- name: "Install lowest dependencies"
47+
if: ${{ matrix.dependencies == 'lowest' }}
48+
run: "composer update --prefer-lowest --no-interaction --no-progress --no-suggest"
49+
50+
- name: "Install highest dependencies"
51+
if: ${{ matrix.dependencies == 'highest' }}
52+
run: "composer update --no-interaction --no-progress --no-suggest"
53+
54+
- name: "Install locked dependencies"
55+
if: ${{ matrix.dependencies == 'locked' }}
56+
run: "composer install --no-interaction --no-progress --no-suggest"
57+
58+
- name: "Static Analyze"
59+
run: "composer static:analyze"

.github/workflows/tests.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: "Tests"
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- "1.x"
8+
schedule:
9+
- cron: '* 8 * * *'
10+
11+
jobs:
12+
compatibility:
13+
name: "Tests"
14+
15+
runs-on: ${{ matrix.operating-system }}
16+
17+
strategy:
18+
matrix:
19+
dependencies:
20+
- "locked"
21+
- "lowest"
22+
- "highest"
23+
php-version:
24+
- "7.4"
25+
- "7.3"
26+
- "7.2"
27+
operating-system:
28+
- "ubuntu-latest"
29+
- "windows-latest"
30+
31+
steps:
32+
- name: "Checkout"
33+
uses: "actions/checkout@v2"
34+
35+
- name: "Install PHP"
36+
uses: "shivammathur/setup-php@v2"
37+
with:
38+
coverage: "pcov"
39+
php-version: "${{ matrix.php-version }}"
40+
ini-values: memory_limit=-1
41+
42+
- name: "Cache dependencies"
43+
uses: "actions/cache@v2"
44+
with:
45+
path: |
46+
~/.composer/cache
47+
vendor
48+
key: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}"
49+
restore-keys: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}"
50+
51+
- name: "Install lowest dependencies"
52+
if: ${{ matrix.dependencies == 'lowest' }}
53+
run: "composer update --prefer-lowest --no-interaction --no-progress --no-suggest"
54+
55+
- name: "Install highest dependencies"
56+
if: ${{ matrix.dependencies == 'highest' }}
57+
run: "composer update --no-interaction --no-progress --no-suggest"
58+
59+
- name: "Install locked dependencies"
60+
if: ${{ matrix.dependencies == 'locked' }}
61+
run: "composer install --no-interaction --no-progress --no-suggest"
62+
63+
- name: "Tests"
64+
run: "composer test"

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
vendor/
22
bin/
3-
composer.lock
3+
var/
44
.DS_Store
55
.idea
66
.phpunit.result.cache

.travis.yml

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

composer.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@
2525
"openlss/lib-array2xml": "^1.0"
2626
},
2727
"require-dev": {
28+
"friendsofphp/php-cs-fixer": "^2.4",
29+
"phpstan/phpstan": "^0.12.32",
2830
"phpunit/phpunit": "^8.4",
29-
"friendsofphp/php-cs-fixer": "^2.4"
31+
"rector/rector-prefixed": "^0.7.43"
3032
},
3133
"autoload": {
3234
"psr-4": {
@@ -46,8 +48,11 @@
4648
"php-cs-fixer fix --using-cache=no"
4749
],
4850
"test" : [
49-
"phpunit",
50-
"php-cs-fixer fix -v --dry-run"
51+
"phpunit"
52+
],
53+
"static:analyze": [
54+
"phpstan analyze -c phpstan.neon",
55+
"php-cs-fixer fix --dry-run"
5156
]
5257
},
5358
"extra": {

0 commit comments

Comments
 (0)