Skip to content

Commit

Permalink
ci: fail psalm when baseline update required
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Kesselberg <[email protected]>
  • Loading branch information
kesselb committed Sep 30, 2024
1 parent 39a708b commit 7286b35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/static-code-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:

- name: Show potential changes in Psalm baseline
if: always()
run: git diff -- . ':!lib/composer'
run: git diff --exit-code -- . ':!lib/composer'

- name: Upload Analysis results to GitHub
if: always()
Expand Down Expand Up @@ -98,4 +98,4 @@ jobs:

- name: Show potential changes in Psalm baseline
if: always()
run: git diff -- . ':!lib/composer'
run: git diff --exit-code -- . ':!lib/composer'
3 changes: 0 additions & 3 deletions build/psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@
<file src="apps/dav/lib/CalDAV/CalDavBackend.php">
<InvalidNullableReturnType>
<code>array</code>
<code>array</code>
</InvalidNullableReturnType>
<LessSpecificReturnStatement>
<code>Reader::read($objectData)</code>
Expand Down Expand Up @@ -1423,7 +1422,6 @@
</file>
<file src="core/routes.php">
<InvalidScope>
<code>$this</code>
<code>$this</code>
<code><![CDATA[$this->create('core_ajax_update', '/core/ajax/update.php')]]></code>
</InvalidScope>
Expand Down Expand Up @@ -2103,7 +2101,6 @@
<MoreSpecificReturnType>
<code>\OC\Files\Node\Node</code>
<code>\OC\Files\Node\Node[]</code>
<code>\OC\Files\Node\Node[]</code>
</MoreSpecificReturnType>
</file>
<file src="lib/private/Files/Node/HookConnector.php">
Expand Down

0 comments on commit 7286b35

Please sign in to comment.