Skip to content

Commit e236a89

Browse files
authored
Merge pull request #4 from patchlevel/update-dependencies
update dependencies
2 parents ec4e876 + 75f0f98 commit e236a89

9 files changed

Lines changed: 1038 additions & 579 deletions

File tree

.github/workflows/phpstan.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
2+
3+
name: "Static Analysis by PHPStan"
4+
5+
on:
6+
pull_request:
7+
push:
8+
branches:
9+
- "master"
10+
11+
jobs:
12+
static-analysis-phpstan:
13+
name: "Static Analysis by PHPStan"
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+
extensions: pdo_sqlite
37+
38+
- name: "Cache dependencies"
39+
uses: "actions/cache@v2"
40+
with:
41+
path: |
42+
~/.composer/cache
43+
vendor
44+
key: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}"
45+
restore-keys: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}"
46+
47+
- name: "Install lowest dependencies"
48+
if: ${{ matrix.dependencies == 'lowest' }}
49+
run: "composer update --prefer-lowest --no-interaction --no-progress --no-suggest"
50+
51+
- name: "Install highest dependencies"
52+
if: ${{ matrix.dependencies == 'highest' }}
53+
run: "composer update --no-interaction --no-progress --no-suggest"
54+
55+
- name: "Install locked dependencies"
56+
if: ${{ matrix.dependencies == 'locked' }}
57+
run: "composer install --no-interaction --no-progress --no-suggest"
58+
59+
- name: "PHPStan"
60+
run: "vendor/bin/phpstan analyse"

.github/workflows/psalm.yml

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

composer.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@
1010
"authors": [
1111
{
1212
"name": "Daniel Badura",
13-
"email": "d.m.badura@gmail.com"
13+
"email": "daniel.badura@patchlevel.de"
1414
},
1515
{
1616
"name": "David Badura",
17-
"email": "d.a.badura@gmail.com"
17+
"email": "david.badura@patchlevel.de"
1818
}
1919
],
2020
"require": {
2121
"php": "^7.4|^8.0",
2222
"ext-json": "^7.4|^8.0",
23-
"doctrine/dbal": "^2.12.1|^3.0.0",
23+
"doctrine/dbal": "^3.1.4",
2424
"patchlevel/event-sourcing": "1.0.0-alpha",
2525
"psr/simple-cache": "^1.0.1",
2626
"symfony/messenger": "^4.4.18|^5.1.10",
@@ -31,13 +31,13 @@
3131
"require-dev": {
3232
"roave/security-advisories": "dev-master",
3333
"ext-pdo_sqlite": "^7.4|^8.0",
34-
"infection/infection": "^0.20.2",
35-
"patchlevel/coding-standard": "^1.0.0",
34+
"infection/infection": "^0.21.5",
35+
"patchlevel/coding-standard": "^1.1.1",
3636
"phpspec/prophecy-phpunit": "^2.0.1",
37-
"phpstan/phpstan": "^0.12.65",
38-
"phpunit/phpunit": "^9.5.0",
39-
"symfony/var-dumper": "^5.2.1",
40-
"vimeo/psalm": "^4.3.2"
37+
"phpstan/phpstan": "^1.2.0",
38+
"phpunit/phpunit": "^9.5.4",
39+
"symfony/var-dumper": "^5.3.11",
40+
"vimeo/psalm": "^4.13.1"
4141
},
4242
"config": {
4343
"preferred-install": {

0 commit comments

Comments
 (0)