Skip to content

Commit 0811fc4

Browse files
committed
fix: use vimeo/psalm and stop hardcoding php 8.2 in psalm action
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
1 parent 1391b79 commit 0811fc4

9 files changed

Lines changed: 6518 additions & 856 deletions

File tree

.github/workflows/psalm-matrix.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,10 @@ jobs:
5656
with:
5757
persist-credentials: false
5858

59-
#- name: Set up php${{ matrix.php-versions }}
60-
- name: Set up php8.2
59+
- name: Set up php${{ matrix.php-versions }}
6160
uses: shivammathur/setup-php@cf4cade2721270509d5b1c766ab3549210a39a2a # v2.33.0
6261
with:
63-
#php-version: ${{ matrix.php-versions }}
64-
php-version: 8.2
62+
php-version: ${{ matrix.php-versions }}
6563
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, sqlite, pdo_sqlite
6664
coverage: none
6765
ini-file: development

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ js/
88
.vscode-upload.json
99
.*.sw*
1010
node_modules
11-
/vendor
11+
vendor/

REUSE.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ SPDX-FileCopyrightText = "2020 Nextcloud GmbH and Nextcloud contributors"
1818
SPDX-License-Identifier = "AGPL-3.0-or-later"
1919

2020
[[annotations]]
21-
path = ["composer.json", "composer.lock"]
21+
path = ["composer.json", "composer.lock", "vendor-bin/psalm/composer.json", "vendor-bin/psalm/composer.lock"]
2222
precedence = "aggregate"
2323
SPDX-FileCopyrightText = "2023 Nextcloud GmbH and Nextcloud contributors"
2424
SPDX-License-Identifier = "AGPL-3.0-or-later"

composer.json

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,36 @@
11
{
22
"require": {
3-
"php": ">=8.1"
3+
"php": ">=8.1",
4+
"bamarni/composer-bin-plugin": "^1.8"
45
},
56
"scripts": {
67
"lint": "find . -name \\*.php -not -path './vendor/*' -print0 | xargs -0 -n1 php -l",
78
"cs:check": "php-cs-fixer fix --dry-run --diff",
89
"cs:fix": "php-cs-fixer fix",
9-
"psalm": "psalm.phar --no-cache",
10-
"psalm:update-baseline": "psalm.phar --threads=1 --update-baseline",
11-
"psalm:update-baseline:force": "psalm.phar --threads=1 --update-baseline --set-baseline=tests/psalm-baseline.xml"
10+
"psalm": "psalm --no-cache",
11+
"psalm:update-baseline": "psalm --threads=1 --update-baseline",
12+
"psalm:update-baseline:force": "psalm --threads=1 --update-baseline --set-baseline=tests/psalm-baseline.xml"
1213
},
1314
"require-dev": {
1415
"friendsofphp/php-cs-fixer": "^3",
1516
"nextcloud/coding-standard": "^1",
16-
"psalm/phar": "6.7.x",
1717
"nextcloud/ocp": "dev-master",
1818
"guzzlehttp/guzzle": "^7.5.1",
1919
"sabre/dav": "^4.4.0"
2020
},
2121
"config": {
2222
"platform": {
2323
"php": "8.1"
24+
},
25+
"allow-plugins": {
26+
"bamarni/composer-bin-plugin": true
27+
}
28+
},
29+
"extra": {
30+
"bamarni-bin": {
31+
"bin-links": true,
32+
"target-directory": "vendor-bin",
33+
"forward-command": true
2434
}
2535
}
2636
}

0 commit comments

Comments
 (0)