Skip to content

Commit 431a0d9

Browse files
authored
Merge pull request #20 from Paneon/master
Update master
2 parents 3d054e9 + 22b11c7 commit 431a0d9

14 files changed

+304
-162
lines changed

.github/workflows/php.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: PHP Composer
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
17+
- name: Validate composer.json and composer.lock
18+
run: composer validate
19+
20+
- name: Cache Composer packages
21+
id: composer-cache
22+
uses: actions/cache@v2
23+
with:
24+
path: vendor
25+
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
26+
restore-keys: |
27+
${{ runner.os }}-php-
28+
29+
- name: Install dependencies
30+
if: steps.composer-cache.outputs.cache-hit != 'true'
31+
run: composer install --prefer-dist --no-progress --no-suggest
32+
33+
- name: Run PHPUnit
34+
run: phpunit
35+
36+
- name: Run PHPStan
37+
uses: actions-x/phpstan@v1
38+
with:
39+
paths: src
40+
level: 6
41+
phpstanVersion: ^0.12

.travis.yml

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

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@
3535
"ext-simplexml": "*",
3636
"phpunit/phpunit": "^7",
3737
"monolog/monolog": "^1.24",
38-
"phpstan/phpstan": "^0.11.8"
38+
"phpstan/phpstan": "^0.12"
3939
},
4040
"scripts": {
4141
"cs:fix": "phpcbf --standard=phpcs.xml",
4242
"cs:check": "phpcs --standard=phpcs.xml --colors -ps",
43-
"phpstan": "@php vendor/bin/phpstan analyse src tests --level 6"
43+
"phpstan": "@php vendor/bin/phpstan analyse src --level 6"
4444
}
4545
}

composer.lock

Lines changed: 15 additions & 47 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)