Skip to content

Commit

Permalink
ci: Run psalm against lowest php version
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Knorr <[email protected]>
  • Loading branch information
juliusknorr committed Oct 11, 2024
1 parent 2314eef commit 5bef199
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/psalm-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ jobs:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Set up php${{ matrix.php-versions }}
- name: Set up php${{ matrix.php-min }}
uses: shivammathur/setup-php@c541c155eee45413f5b09a52248675b1a2575231 # v2.31.1
with:
php-version: ${{ matrix.php-versions }}
php-version: ${{ matrix.php-min }}
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, sqlite, pdo_sqlite
coverage: none
ini-file: development
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,11 @@ jobs:
tools: phpunit:9
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install latest dev Nextcloud PHP API (max only)
if: matrix.version == 'max'
run: composer require --prefer-dist --dev nextcloud/ocp:dev-master
- name: Install Dependencies
run: composer install --no-dev
run: composer install --prefer-dist
- name: Prepare MySQL database
run: |
sudo systemctl start mysql
Expand Down
8 changes: 8 additions & 0 deletions tests/psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@
</MoreSpecificReturnType>
</file>
<file src="lib/Migration/EditorHint.php">
<DeprecatedMethod>
<code><![CDATA[getAppValue]]></code>
</DeprecatedMethod>
<MissingReturnType>
<code><![CDATA[run]]></code>
</MissingReturnType>
Expand Down Expand Up @@ -189,6 +192,11 @@
</MissingReturnType>
</file>
<file src="lib/Service/SettingsService.php">
<DeprecatedMethod>
<code><![CDATA[\OCP\Util::getVersion()]]></code>
<code><![CDATA[getAppValue]]></code>
<code><![CDATA[getAppValue]]></code>
</DeprecatedMethod>
<InvalidOperand>
<code><![CDATA[$this->defaultSuffixes]]></code>
</InvalidOperand>
Expand Down

0 comments on commit 5bef199

Please sign in to comment.