Skip to content

Commit da4f7f3

Browse files
committed
Updated Github actions
1 parent dde63c3 commit da4f7f3

File tree

4 files changed

+61
-63
lines changed

4 files changed

+61
-63
lines changed

.github/workflows/phpstan-5.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ jobs:
1515
with:
1616
args: --prefer-dist
1717
php_version: 8.0
18-
1918
- name: PHPStan
2019
uses: php-actions/phpstan@v2
2120
with:
2221
path: src/
23-
args: --level=5
22+
level: 4
23+
php_version: 8.0

.github/workflows/phpstan-7.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ jobs:
1515
with:
1616
args: --prefer-dist
1717
php_version: 8.0
18-
1918
- name: PHPStan
2019
uses: php-actions/phpstan@v2
2120
with:
2221
path: src/
23-
args: --level=5
22+
level: 7
23+
php_version: 8.0

.github/workflows/phpstan-8.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ jobs:
1515
with:
1616
args: --prefer-dist
1717
php_version: 8.0
18-
1918
- name: PHPStan
2019
uses: php-actions/phpstan@v2
2120
with:
2221
path: src/
23-
args: --level=5
22+
level: 8
23+
php_version: 8.0

.github/workflows/quality.yaml

Lines changed: 55 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,59 @@
1-
name: Quality
1+
name: Quality (PHPStan level 4)
22
on: push
33
jobs:
4-
cs-fixer:
5-
runs-on: ubuntu-latest
6-
steps:
7-
- uses: actions/checkout@v2
8-
- name: Cs-Fixer
9-
run: |
10-
wget -q https://cs.symfony.com/download/php-cs-fixer-v2.phar -O php-cs-fixer
11-
chmod a+x php-cs-fixer
12-
PHP_CS_FIXER_IGNORE_ENV=true ./php-cs-fixer fix src --dry-run
4+
cs-fixer:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v2
8+
- name: Cs-Fixer
9+
run: |
10+
wget -q https://cs.symfony.com/download/php-cs-fixer-v2.phar -O php-cs-fixer
11+
chmod a+x php-cs-fixer
12+
PHP_CS_FIXER_IGNORE_ENV=true ./php-cs-fixer fix src --dry-run
1313
14-
phpunit:
15-
runs-on: ubuntu-latest
16-
steps:
17-
- uses: actions/checkout@v2
18-
- uses: shivammathur/setup-php@v2
19-
with:
20-
php-version: '8.0'
21-
tools: composer:v2
22-
coverage: pcov
23-
- uses: actions/cache@v2
24-
with:
25-
path: '**/vendor'
26-
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
27-
restore-keys: |
28-
${{ runner.os }}-composer-
29-
- uses: php-actions/composer@v5
30-
with:
31-
args: --prefer-dist
32-
php_version: 8.0
14+
phpunit:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v2
18+
- uses: shivammathur/setup-php@v2
19+
with:
20+
php-version: '8.0'
21+
tools: composer:v2
22+
coverage: pcov
23+
- uses: actions/cache@v2
24+
with:
25+
path: '**/vendor'
26+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
27+
restore-keys: |
28+
${{ runner.os }}-composer-
29+
- uses: php-actions/composer@v5
30+
with:
31+
args: --prefer-dist
32+
php_version: 8.0
33+
- name: Run tests & generate Coverage
34+
run: bin/phpunit --configuration=phpunit.xml tests --coverage-html var/coverage --whitelist=src
35+
- name: Store coverage files
36+
uses: actions/upload-artifact@v2
37+
with:
38+
path: var/coverage
3339

34-
- name: Run tests & generate Coverage
35-
run: bin/phpunit --configuration=phpunit.xml tests --coverage-html var/coverage --whitelist=src
36-
37-
- name: Store coverage files
38-
uses: actions/upload-artifact@v2
39-
with:
40-
path: var/coverage
41-
42-
phpstan:
43-
runs-on: ubuntu-latest
44-
steps:
45-
- uses: actions/checkout@v2
46-
- uses: actions/cache@v2
47-
with:
48-
path: '**/vendor'
49-
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
50-
restore-keys: |
51-
${{ runner.os }}-composer-
52-
- uses: php-actions/composer@v5
53-
with:
54-
args: --prefer-dist
55-
php_version: 8.0
56-
57-
- name: PHPStan
58-
uses: php-actions/phpstan@v2
59-
with:
60-
path: src/
61-
args: --level=4
40+
phpstan:
41+
runs-on: ubuntu-latest
42+
steps:
43+
- uses: actions/checkout@v2
44+
- uses: actions/cache@v2
45+
with:
46+
path: '**/vendor'
47+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
48+
restore-keys: |
49+
${{ runner.os }}-composer-
50+
- uses: php-actions/composer@v5
51+
with:
52+
args: --prefer-dist
53+
php_version: 8.0
54+
- name: PHPStan
55+
uses: php-actions/phpstan@v2
56+
with:
57+
path: src/
58+
level: 4
59+
php_version: 8.0

0 commit comments

Comments
 (0)