Skip to content

Commit

Permalink
Clean up CI static analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowhand committed Oct 16, 2024
1 parent 8be8250 commit 95e75c2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,17 @@ jobs:
- name: Install PHP
uses: shivammathur/[email protected]
with:
php-version: '8.3'
coverage: none
extensions: mbstring
php-version: "7.4"

- name: Install dependencies with composer
run: "composer update --no-interaction --no-progress && composer i --working-dir=ci"
- name: Install psalm
run: >-
composer require --dev vimeo/psalm
- name: Run vimeo/psalm
run: "ci/vendor/bin/psalm --threads=4"
- name: Run static analysis
run: >-
psalm --threads=4
roave-bc-check:
name: Roave BC Check
Expand Down
12 changes: 4 additions & 8 deletions psalm.xml
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
<?xml version="1.0"?>
<psalm
totallyTyped="true"
errorLevel="8"
resolveFromConfigFile="true"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config ci/vendor/vimeo/psalm/config.xsd"
phpVersion="7.3"
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
>
<projectFiles>
<directory name="bin" />
<directory name="bin"/>
<directory name="tests/static-analysis" />
<ignoreFiles>
<directory name="ci"/>
</ignoreFiles>
</projectFiles>

</psalm>

0 comments on commit 95e75c2

Please sign in to comment.