Skip to content

Commit 5738c06

Browse files
authored
Merge pull request #50 from villfa/ci/phive
Upgrade tools to fix installation
2 parents 1ff7ecf + 7144000 commit 5738c06

File tree

4 files changed

+18
-14
lines changed

4 files changed

+18
-14
lines changed

.github/workflows/push.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
- name: Install phive
4141
run: make install-phive
4242
- name: Install PHAR dependencies
43-
run: tools/phive.phar --no-progress install --copy --trust-gpg-keys 4AA394086372C20A,D2CCAC42F6295E7D,8A03EA3B385DBAA1,CF1A108D0E7AE720 --force-accept-unsigned
43+
run: tools/phive.phar --no-progress install --copy --trust-gpg-keys CF1A108D0E7AE720,D2CCAC42F6295E7D,4AA394086372C20A,12CE0F1D262429A5 --force-accept-unsigned
4444

4545
phpunit-with-coverage:
4646
runs-on: ubuntu-latest
@@ -69,7 +69,6 @@ jobs:
6969
with:
7070
php-version: 7.2
7171
coverage: xdebug
72-
pecl: false
7372
- name: Run PHPUnit
7473
run: php tools/phpunit
7574

@@ -122,12 +121,13 @@ jobs:
122121
restore-keys: |
123122
all-tools-${{ github.sha }}-
124123
all-tools-
125-
- name: PHPStan
126-
uses: docker://phpdoc/phpstan-ga:latest
127-
env:
128-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
124+
- name: Setup PHP
125+
uses: shivammathur/setup-php@master
129126
with:
130-
args: analyse src --level max --configuration phpstan.neon
127+
php-version: 7.2
128+
coverage: none
129+
- name: Run PHPStan
130+
run: php tools/psalm
131131

132132
psalm:
133133
runs-on: ubuntu-latest
@@ -154,8 +154,7 @@ jobs:
154154
uses: shivammathur/setup-php@master
155155
with:
156156
php-version: 7.2
157-
coverage: xdebug
158-
pecl: false
157+
coverage: none
159158
- name: Run psalm
160159
run: php tools/psalm
161160

@@ -197,7 +196,6 @@ jobs:
197196
php-version: ${{ matrix.php-versions }}
198197
extension-csv: mbstring, intl, iconv, libxml, dom, json, simplexml, zlib
199198
ini-values-csv: memory_limit=2G, display_errors=On, error_reporting=-1
200-
pecl: false
201199
- name: Run PHPUnit
202200
continue-on-error: true
203201
run: php tools/phpunit

phive.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phive xmlns="https://phar.io/phive">
3-
<phar name="phpunit" version="^8.4.3" installed="8.5.15" location="./tools/phpunit" copy="true"/>
4-
<phar name="phpstan" version="^0.12.1" installed="0.12.85" location="./tools/phpstan" copy="true"/>
5-
<phar name="psalm" version="^3.7.2" installed="3.18.2" location="./tools/psalm" copy="true"/>
3+
<phar name="phpunit" version="^8.4.3" installed="8.5.25" location="./tools/phpunit" copy="true"/>
4+
<phar name="phpstan" version="^1.4.0" installed="1.4.10" location="./tools/phpstan" copy="true"/>
5+
<phar name="psalm" version="^4.22.0" installed="4.22.0" location="./tools/psalm" copy="true"/>
66
<phar name="composer-require-checker" version="^1.0.0" installed="1.1.0" location="./tools/composer-require-checker" copy="true"/>
77
</phive>

phpstan.neon

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
parameters:
2+
level: max
3+
paths:
4+
- %currentWorkingDirectory%/src/
5+
ignoreErrors:
6+
- '/Offset .+ on array.+ in isset\(\) always exists and is not nullable./'

psalm.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0"?>
22
<psalm
3-
totallyTyped="true"
3+
errorLevel="1"
44
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
55
xmlns="https://getpsalm.org/schema/config"
66
ensureArrayStringOffsetsExist="true"

0 commit comments

Comments
 (0)