Skip to content

Commit

Permalink
Psalm no cache test
Browse files Browse the repository at this point in the history
  • Loading branch information
asgrim committed Jun 4, 2024
1 parent 098ab19 commit 41da124
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ jobs:
- name: "Install dependencies"
run: "composer install --no-interaction --prefer-dist"
- name: "Run Psalm"
run: "vendor/bin/psalm"
run: "vendor/bin/psalm --no-cache --threads=1"

roave-backwards-compatibility-check:
name: "Check for Backward Compatibility breaks"
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ cs-fix: ## auto fix code style rules
$(PHP_PATH) vendor/bin/phpcbf $(OPTS)

static-analysis: ## verify that no new static analysis issues were introduced
$(PHP_PATH) vendor/bin/psalm $(OPTS)
$(PHP_PATH) vendor/bin/psalm --threads=1 $(OPTS)

coverage: ## generate code coverage reports
$(PHP_PATH) vendor/bin/phpunit --testsuite unit --coverage-html build/coverage-html --coverage-text $(OPTS)
Expand All @@ -41,7 +41,7 @@ deps-highest: ## Update deps to highest
$(PHP_PATH) $(COMPOSER_PATH) install

update-static-analysis-baseline: ## bump static analysis baseline issues, reducing set of allowed failures
$(PHP_PATH) vendor/bin/psalm --update-baseline
$(PHP_PATH) vendor/bin/psalm --update-baseline --threads=1

reset-static-analysis-baseline: ## reset static analysis baseline issues to current HEAD
$(PHP_PATH) vendor/bin/psalm --set-baseline=known-issues.xml
$(PHP_PATH) vendor/bin/psalm --set-baseline=known-issues.xml --threads=1
9 changes: 3 additions & 6 deletions known-issues.xml
Original file line number Diff line number Diff line change
Expand Up @@ -322,9 +322,6 @@
<PossiblyNullPropertyFetch>
<code><![CDATA[$cursor->current()->hello]]></code>
</PossiblyNullPropertyFetch>
<UnusedFunctionCall>
<code><![CDATA[meminfo_dump]]></code>
</UnusedFunctionCall>
</file>
<file src="tests/Integration/CheckScoutApmKeyListener.php">
<DeprecatedInterface>
Expand Down Expand Up @@ -353,6 +350,9 @@
</PossiblyUnusedMethod>
</file>
<file src="tests/Unit/AgentTest.php">
<DeprecatedClass>
<code><![CDATA[self::at(0)]]></code>
</DeprecatedClass>
<DeprecatedMethod>
<code><![CDATA[self::at(0)]]></code>
<code><![CDATA[self::at(0)]]></code>
Expand Down Expand Up @@ -567,9 +567,6 @@
</DeprecatedMethod>
</file>
<file src="tests/Unit/ScoutApmBundle/ScoutApmAgentFactoryTest.php">
<DeprecatedClass>
<code><![CDATA[self::at(3)]]></code>
</DeprecatedClass>
<DeprecatedMethod>
<code><![CDATA[self::at(3)]]></code>
</DeprecatedMethod>
Expand Down

0 comments on commit 41da124

Please sign in to comment.